[NO ISSUE][REP] Account for SSL socket data transfer behavior
authorMurtadha Hubail <mhubail@apache.org>
Wed, 14 Apr 2021 23:53:08 +0000 (02:53 +0300)
committerMurtadha Hubail <mhubail@apache.org>
Thu, 15 Apr 2021 14:22:39 +0000 (14:22 +0000)
commit94b1306e380dc923a964abf60900d55e545a4e4f
treea7250e4cc7c55cd643a5fe06fc86d2efaa7755cc
parent40be6e72254ea9a2192041eb357435bc838dee93
[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>
asterixdb/asterix-replication/src/main/java/org/apache/asterix/replication/management/NetworkingUtil.java