Bill commented on code in PR #7449: URL: https://github.com/apache/geode/pull/7449#discussion_r844434098
########## 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); + break; + case OK: + break; + case CLOSED: + throw new SSLException("Error encrypting data: " + wrapResult); } - if (wrapResult.getStatus() != OK) { - throw new SSLException("Error encrypting data: " + wrapResult); + switch (wrapResult.getHandshakeStatus()) { Review Comment: this method changed significantly. resolving this conversation -- 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: notifications-unsubscr...@geode.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org