Bill commented on code in PR #7449:
URL: https://github.com/apache/geode/pull/7449#discussion_r844416701


##########
geode-core/src/main/java/org/apache/geode/internal/net/NioSslEngine.java:
##########
@@ -248,12 +248,24 @@ public ByteBufferSharing wrap(ByteBuffer appData) throws 
IOException {
 
         SSLEngineResult wrapResult = engine.wrap(appData, myNetData);
 
-        if (wrapResult.getHandshakeStatus() == NEED_TASK) {
-          handleBlockingTasks();
+        switch (wrapResult.getStatus()) {
+          case BUFFER_UNDERFLOW:
+            throw new SSLException("Error encrypting data: " + wrapResult);
+          case BUFFER_OVERFLOW:
+            write(channel, myNetData);

Review Comment:
   This issue is resolved. No more `write()` here.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to