elecharny commented on PR #61:
URL: https://github.com/apache/mina/pull/61#issuecomment-5614046859
Ok, I was totally wrong. The server do close the connection, and more
specifically the `messageReceive()` method does it when it has received 2
messages.
The key here is that the `IoHandler` receives Handshake massages, which is
totally wrong. So it all has to do with the change done. We have to find a way
to *not* send HS messages to the `IoHandler`.
Here are the logs:
```
------------------------------------Message sent: HeapBuffer@5ab35b18[pos=0
lim=1427 cap=33418: 16 03 03 00 7A 02 00 00 76 03 03 1B 0E 3F 5E D7]
...
and then later on:
```
------------------------------------Message sent: HeapBuffer@63d87619[pos=0
lim=1210 cap=33418: 17 03 03 04 B5 27 B5 4E 9A 80 91 A9 A5 22 55 A1]
```
I have changd the `messageSent` method to print that logs:
```
@Override
public void messageSent(IoSession session, Object message) throws
Exception {
System.out.println( "------------------------------------Message
sent: " + message );
sentMessages.add(message.toString());
if (sentMessages.size() >= 2) {
session.closeNow();
}
}
```
and we can clearly see that we are dealing with TLS messages: 16 is for a HS
TLS message, 17 is the wrapped message, crypted.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]