-
Notifications
You must be signed in to change notification settings - Fork 640
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
serveTLS: requests are not completed by the browser and time out #750
Comments
I was able to reproduce this with 1.7.1 and above and also I confirmed this doesn't happen with 1.7.0. (The above gif stops animating in first a few frames in 3 browsers (chrome, firefox, safari). Firefox reports "Image corrupt or truncated.") ref: The list of commits between 2 versions: denoland/deno@v1.7.0...v1.7.1 |
works: https://dl.deno.land/canary/c8a5e3c1e485915880bd5ed10438ac87baf4a80b/deno-x86_64-unknown-linux-gnu.zip (I tested them on ubuntu 20.04) Seems caused by https://github.com/denoland/deno/pull/9118/files |
…ite half" using tokio::io::split() to allow concurrent Conn#read() and Conn#write() calls without one blocking the other. However, this introduced a bug: outgoing data gets discarded when the TLS stream is gracefully closed, because the read half is closed too early, before all TLS control data has been received. Fixes: denoland#9692 Fixes: denoland#10049 Fixes: denoland#10296 Fixes: denoland/std#750
denoland#10146) In denoland#9118, TLS streams were split into a "read half" and a "write half" using tokio::io::split() to allow concurrent Conn#read() and Conn#write() calls without one blocking the other. However, this introduced a bug: outgoing data gets discarded when the TLS stream is gracefully closed, because the read half is closed too early, before all TLS control data has been received. Fixes: denoland#9692 Fixes: denoland#10049 Fixes: denoland#10296 Fixes: denoland/std#750
|
It is impossible to serve a website with
serveTLS
because some subsequent file requests originating from the html file are not completed.I made a minimal reproduction consisting of an html and a gif file.
Run it with:
It is important to mention that I tested it with different static file servers and the behavior is always the same: The browser will not finish loading the page.
This behavior only happens with deno versions 1.7.1 and higher. When you downgrade deno to 1.7.0 everything works like expected (besides that the server crashes after a few hours but that's another issue).
The text was updated successfully, but these errors were encountered: