Skip to content

Conversation

@bergice
Copy link
Owner

@bergice bergice commented Oct 25, 2024

No description provided.

PhilipRoman and others added 30 commits November 1, 2023 17:10
Fix multiple issues related to reconnect
Retrieve default SSL socket factory
…on is not yet opened. This prevents the write thread from hanging while attempting to write to the output stream. Reset the connection if we fail to connect during connectBlocking.
Have connectBlocking clean up after a timeout
Also increase default to 64K for performance improvement.
On Ubuntu 22.04 with Linux 6.5, it was observed that when the server
gets the SSL records containing the client handshake finished message
and the first HTTP GET request in ONE read operation, the latter SSL
record is never processed.

Commit 89eaf41 should have fixed this,
but it turned out that when SSLSocketChannel2#processHandshake() is
called from SSLSocketChannel2#write(), the second SSL record containing
the HTTP GET request is stashed away, but never retrieved, since the
calling code in WebSocketServer#doWrite() has no provisions for this,
only WebSocketServer#doRead() does.

Change SSLSocketChannel2#processHandshake() to only read from the socket
when called from SSLSocketChannel#read(), to ensure that when two SSL
records are read, the second one is processed as well.

This fixes issue #1418.
…er_misses_get

Fix issue #1418: WebSocketServer sometimes misses GET request after SSL handshake
@bergice bergice merged commit ccef002 into bergice:master Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants