Open GitHub-Yann opened 3 months ago
you can get my demo by https://github.com/GitHub-Yann/gateway-socket-demo
(1) gateway project,it will use 9891 port
(2) socket server, it will use 8080 and 8081 port
start the two projects.
(3) open browser, visit http://localhost:9891/demoy-socket/index, the socket-client page will be shown, then you can input some message into the input field and click the "send" button.
(4) simulate big cookies in the browser, like below
(5) open several new tabs of the browser, and visit http://localhost:9891/demoy-socket/index in each tab
(6) we can see WARN message in socket server
(7) after a while, we can close the browser,
(8) use netstat -an | findstr 8081 | findstr ESTABLISHED
, we can see there is some ESTABLISHED TCP of 8081 port
hello , @violetagg , Can you have a look at this?
Hi, there, I have a backend service【websocket service】(https://github.com/mrniko/netty-socketio).
when there is a large cookie in the request , the backend【websocket side】 will print such error:
io.netty.handler.codec.http.websocketx.WebSockeetHandshakeException: not a WebSocket handshakerequest: missing upgrade
although I close the browser , the ESTABLISHED connection is still existed.
if I visit the socket server page directly in the browser, when I close the browser the connection will be gone.
Is there anyone also meet such scenario ? How can we handle it ?
netty: 4.1.96.Final
spring-cloud: 2021.0.8
(1)html page for client:
(2) socket server
(3)my gateway route configuration