-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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: After successful reconnect no proposed transactions are received #3180
Comments
Can you post an example that exhibits this behavior? When you're disconnected from websocket, any prior subscriptions are canceled. When you reconnect, you won't receive any subscription messages until after you re-subscribe again. This is normal and expected. |
It doesn't work that way in practice ... every time I'm disconnected because of Hmm ... this is really odd ... at 23:14 CET last night it just stopped receiving proposed transactions ... without any websocket disconnection. (It wasn't connectivity loss on my end since my Binance websocket kept on receiving) |
That stop of proposed transactions without websocket disconnect happened again here at 03:41:38 CET ... can you see anything in your logs why this is happening? |
We will look into this. Thank you. |
Are you restarting your websockets daily at around 3:40 - 4:00 CET?
|
My logs show there was another silent failure on 25th. of December at 17:01 CET (connection was not closed, it just stopped receiving proposedTransactions) It doesn't look to be a problem on my side, as the Bitstamp & Binance websockets kept on receiving |
Another silent failure at 06:55:59 CET this morning. Can you at least tell me if you were restarting the production servers at that time? |
Please!!! how to solve it |
Hi, the validator history service is experiencing the same issue across multiple nodes subscriptions:
Lots of node connections failed on the first try and VHS would not try again after an hour. My current fix would be to retry whenever the closing code is seen. Just wonder if there's more insight on how to prevent this from happening in the future. Thank you! |
I'm starting to have the same issue on the VHS as after reconnections, the websockets randomly became silent (no subscription message received, even though they were still open) for certain periods. They started to receive messages again after a while or if I restarted the server. Any insights on this would be appreciated. |
@pdp2121 is the problem only showing in subscriptions , or are you missing responses/replies from other methods ? |
Hi @Bronek, thanks for working on this issue! Currently we only send other requests based on the subscription stream so I'm not sure if other methods would fail as well. I can try to send a request periodically to test if that would help? |
it would help me to narrow it down if I know if other methods, such as e.g. |
Hi @Bronek, after testing with |
Thank you - could this be a connectivity problem between |
@Bronek Communication is via Node.js websocket library: Example:
The app connect to all nodes possible on XRPL to get data. This issue happens on both my local machine and staging/ prod servers on GCP. Any suggestion on how we could improve the connectivity would be appreciated! Below is the connection file: |
The websocket regularly disconnects with
closed with CloseStatus[code=1008, reason=Policy error: client is too slow.]
- they come in bursts but then don't happen for 30-40 minutes, so I suspect it's not my implementation ... but I will refactor and move the processing out of the websocket receipt thread.Anyway - the bug - at some point the websocket reconnects succesfully, but no proposed transactions are received. Not even the ones with funny money (CNY), which usually flood the network 😄
The text was updated successfully, but these errors were encountered: