[NO ISSUE][REP] Account for SSL socket data transfer behavior
authorMurtadha Hubail <mhubail@apache.org>
Tue, 8 Jun 2021 21:21:33 +0000 (00:21 +0300)
committerMurtadha Hubail <mhubail@apache.org>
Wed, 9 Jun 2021 10:42:46 +0000 (10:42 +0000)
commit7b1a724b1653115c5fc4d46e44e1ced715957133
tree71f004f7fc0c504fac3fa5a16099915182a836a5
parent0a44dbc96b4be8b160e281e5700a9fbf699cecfb
[NO ISSUE][REP] Account for SSL socket data transfer behavior

- user model changes: no
- storage format changes: no
- interface changes: no

Details:

- Account for the fact that a call to an SSLSocketChannel
  read operation can return 0 read bytes even in a blocking
  socket due to incomplete SSL packet.

Change-Id: I0e1e69cba7336e0cfca5def870ab16334ce8c19f
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/11064
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Murtadha Hubail <mhubail@apache.org>
Reviewed-by: Ali Alsuliman <ali.al.solaiman@gmail.com>
(cherry picked from commit 94b1306e380dc923a964abf60900d55e545a4e4f)
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/11843
asterixdb/asterix-replication/src/main/java/org/apache/asterix/replication/management/NetworkingUtil.java