tokers commented on issue #5440: URL: https://github.com/apache/apisix/issues/5440#issuecomment-974603801
> > Directly using the Nginx proxy will not cause the service to actively disconnect the client connection. > > > > Not true, see: https://nginx.org/en/docs/http/websocket.html?_ga=2.219808217.1349535884.1636598551-1257987705.1633943387 > > > > ``` > > By default, the connection will be closed if the proxied server does not transmit any data within 60 seconds. This timeout can be increased with the proxy_read_timeout directive. Alternatively, the proxied server can be configured to periodically send WebSocket ping frames to reset the timeout and check if the connection is still alive. > > ``` > > > > @tokers > > > > > Can we reset the timeout settings once the connection is upgraded to websocket? > > > > maybe we could enhance this, but I think that the client still has to keep heartbeat with server on websocket? > > otherwise the connection would be stop after the timeout period. Frankly, the websocket proxy behavior of APISIX and Nginx should be same. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
