-
Notifications
You must be signed in to change notification settings - Fork 86
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
Be lenient about Connection header contents when Upgrade header is present #153
Conversation
…esent This is a workaround for rstudio/rstudio#2940. It stops an erroneously sent "Connection: close" header from breaking an otherwise legit websocket request.
@jcheng5 yes, rstudio.cloud has a proxy, but this still needs to work on rstudio.cloud and remains broken with httpuv 1.4.4.2 |
@jspiewak Oh, I wasn't able to repro the problem on rstudio.cloud, that's why I said that. You're seeing the grey-out with these exact repro steps? |
@jcheng5 https://community.rstudio.com/t/shiny-app-greys-out-in-rstudio-cloud-error-during-websocket-handshake/10422 plus another that was reported directly to Robby. |
@jcheng5 I've been able to reproduce it and am investigating now. It doesn't happen with all apps. |
I dug around in the code a little bit and found a smaller example that crashes about 50% of the time on rstudio.cloud.
|
Hm, even
|
I have the same issue, when I run
|
@dernapo Are you on rstudio.cloud, RStudio Server (Pro), or RStudio desktop? And if one of the latter two, what version? If not desktop then installing httpuv from GitHub master may help--if that works then you likely have a misconfigured nginx proxy between you and RStudio. See https://community.rstudio.com/t/shiny-v1-3-known-regressions-and-serious-issues/28180/4 |
Hi @jcheng5 I am using RStudio Server Version 1.2.1335, no NGINX but Apache 2.4. |
This is a workaround for rstudio/rstudio#2940. It
stops an erroneously sent "Connection: close" header from breaking an
otherwise legit websocket request.
Testing notes
Log into an RStudio Server (rstudio.cloud doesn't count, maybe because they run through a proxy) using Firefox. Do
shiny::runExample("01_hello")
. If httpuv is 1.4.x, the app will launch but immediately disconnect without rendering output. (Older versions of httpuv don't have the problem.)