-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New SSLSocketChannel #717
Comments
Testing the usage of https://github.com/marianobarrios/tls-channel |
Hi, any progress updates on this? Is a branch or test binary available that incorporates marianobarrios's ByteChannel implementation? |
Hello @theAprel, not really. I am currently to busy do invest a lot of time in this project due to my work load. It looked like it would require some bigger changes... You wanna take a look at this? Best regards, |
I gave it a shot this morning. The largest obstacle is marianobarrios/tls-channel requires Java 8, and this project supports back to Java 6, which likely rules it out as a solution. That aside, I tried it anyway to see if it would fix the WSS problems. I didn't get very far, but I'll type out my progress in case anyone finds it useful. I replaced the return statements of I tried to force the handshake to see if that would help. The tls-channel project has a I'm going to use a reverse proxy to handle the TLS layer and use ws with java_websockets until the issues with wss are resolved. |
Hello @theAprel, Well I personally have no problem dropping the 1.6 support... Thank you for your progress report. It may help me, if I will ever have more free time available. Do you mind telling me why you have a problem with wss in your project? Currently running both server and client in production using wss. Best regards, |
I'll add one more thing: when I use ws to test the server, it immediately returns As for my current issue with wss, my wss server arbitrarily fails to accept wss connections from Firefox. One connection can work fine; the next one times out. My team has been unable to replicate in Chrome, but we're seeing it in Firefox. It doesn't help our diagnostic process that Firefox prints so little information to the console on failed connections. They just timeout trying to connect to the wss server. Cert is signed by Let's Encrypt, and the cert looks fine in the developer tools for connections that do manage to connect in FF. If I disable wss, I don't have problems with FF connections. Looking over the issue tracker, I see that SSL issues with FF has come up before. Our wss server also opens and closes WSS connections rapidly, which led me to #665 . I'm tempted to try applying the patch in that issue to see if it helps. |
Hello @theAprel, thanks again for your feedback! Going to focus a bit more effort into wss then! Best regards, |
It could be an issue from JRE version. Please try to upgrade or downgrade JRE. This is how I did after I found this issue in my project. |
Expected Behavior
There are some known issues with the current implementation SSLSocketChannel2. See #424 & #665. A clean implementation (maybe using SSLSocketChannel) should solve these issues.
Current Behavior
#424 and #665
Possible Solution
New SSLSocketChannel or different ByteChannel implementation
The text was updated successfully, but these errors were encountered: