-
Notifications
You must be signed in to change notification settings - Fork 674
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
Websocket Timeout Not Being Honored #2578
Comments
Hi @jdonnell01, thanks for logging this issue. One of the maintainers will need to see if we can reproduce the issue to see if we can track it down. Is there anything else you can tell us about the service you're doing websockets with? Any idea of what timeout is being enforced? Thanks for any extra info you can provide. |
Hi @youngnick. I am using the following libraries: HTTR (Underlying Framework for Creating WebSockets): https://github.com/r-lib/httr Code for initiating the websocket: https://github.com/rstudio/shiny/blob/e7ec5e5ba4915a4bf57ac8f21166ea916b44e379/srcjs/shinyapp.js#L80 I no longer think it's a timeout as the app will actually disconnect during normal use. However, something on the proxy is causing the websocket to sporadically close. |
Hey @jdonnell01 we just merged support for configuring some various timeouts, in particular: #2632. Would you be able to try out a |
We've run into this issue as well. There is a sample Play App + Docker + kubernetes config here: https://github.com/mzesri/contour-sample Which version of contour do we need to install? Which annotations should we be looking at? |
Testing the HTTPProxy config in the initial report. The following Envoy config is generated:
Note that the You should be using the latest Contour release (1.7.0). I think the next step here is a reproducible set of steps to validate this using the current release. |
This is the HTTPProxy we're using: ---
apiVersion: projectcontour.io/v1
kind: HTTPProxy
metadata:
name: playapp-ingress-route
namespace: default
spec:
virtualhost:
fqdn: a4iot-mingwebsockettest.westus2.cloudapp.azure.com
tls:
secretName: a4iot-cert
minimumProtocolVersion: "1.2"
routes:
- conditions:
- prefix: /prefix/
timeoutPolicy:
response: 900s
idle: 900s
enableWebsockets: true
permitInsecure: true
services:
- name: playapp-service
port: 80
pathRewritePolicy:
replacePrefix:
- prefix: /prefix/
replacement: /
retryPolicy:
count: 3 Should the |
closing due to inactivity, please reopen a new issue with details if you still have issues with this |
I set the timeout for the websocket on my app to be 1800s, however it seems that HTTP Proxy/Contour is not honoring this value as the websocket will timeout randomly. I also tried setting it to infinity as described in the docs (https://projectcontour.io/docs/master/httpproxy/), however this did not work either. I am trying to run an R Shiny application (https://github.com/rstudio/shiny).
This is my HTTPProxy config:
Thank you
The text was updated successfully, but these errors were encountered: