You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect if a websocket connection is severed for the subscription to return an error immediately allowing re-subscription attempts.
Actual behaviour
If you cut the websocket connection between the client and remote go-ethereum node (e.g. by firewall, VPN disconnection etc) then the websocket does not close and instead silently hangs. It appears to hang for a long time, although occasionally after 10-15m or so we will see a Error in new head subscription, unsubscribed: websocket: close 1006 (abnormal closure): unexpected EOF and our software will recover.
Steps to reproduce the behaviour
Open a subscription to listen for new heads
Cut the connection (I used connection through a VPN and disabled the VPN to simulate this, but you could probably do it with iptables etc)
Backtrace
No backtrace, but the debugger shows this:
and also
The text was updated successfully, but these errors were encountered:
samsondav
changed the title
Websocket subscriptions do not get closed if network connection goes away
Websocket subscriptions do not get closed quickly if network connection is severed
Sep 3, 2021
System information
Geth version:
1.10.8
OS & Version: All
Expected behaviour
I would expect if a websocket connection is severed for the subscription to return an error immediately allowing re-subscription attempts.
Actual behaviour
If you cut the websocket connection between the client and remote go-ethereum node (e.g. by firewall, VPN disconnection etc) then the websocket does not close and instead silently hangs. It appears to hang for a long time, although occasionally after 10-15m or so we will see a
Error in new head subscription, unsubscribed: websocket: close 1006 (abnormal closure): unexpected EOF
and our software will recover.Steps to reproduce the behaviour
Backtrace
No backtrace, but the debugger shows this:
and also
The text was updated successfully, but these errors were encountered: