[tcp] Improve pendingWriteInterestAfterRead code comment

This commit is contained in:
Florian Schmaus 2020-09-20 13:06:02 +02:00
parent 525ee09ea1
commit 08fc0ba0b4
1 changed files with 2 additions and 2 deletions

View File

@ -498,9 +498,9 @@ public class XmppTcpTransportModule extends ModularXmppClientToServerConnectionM
pendingInputFilterData = false;
}
// We have successfully read something. It is now possible that a filter is now also able to write
// additional data (for example SSLEngine).
if (pendingWriteInterestAfterRead) {
// We have successfully read something and someone announced a write interest after a read. It is
// now possible that a filter is now also able to write additional data (for example SSLEngine).
pendingWriteInterestAfterRead = false;
newInterestedOps |= SelectionKey.OP_WRITE;
}