-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Deno 1.6.2 and 1.6.3 fail to fully handshake even after a Deno.startTls
upgrade completes
#9032
Comments
Deno.startTls
upgrade completes
I think #8945 could be related to this. |
Likely caused by 6984b63. For me the test completed after about 120 seconds:
|
Found the issue. Only one of read or write can access a TLS stream at once. One will asynchronously block until the other gives up its lock. We need to turn the |
It looks like this will require some hackery, as We should try with |
Should be fixed by #9118. |
The issue seems to be that
Deno.startTls()
resolves before the connection is fully setup - any writer created on the resulting tlsConnection will fail - here's a test:Running with 1.4.6->1.6.1:
On 1.6.2+ the result is different - the code will block on the
writer.flush()
:Removing the
flush()
, will make the program block as the read loop won't ever see thePONG\r\n
response it is expecting.The text was updated successfully, but these errors were encountered: