8000 fix acceleration websocket timeout loop by mononaut · Pull Request #5649 · mempool/mempool · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix acceleration websocket timeout loop #5649

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

Merged
merged 3 commits into from
Nov 22, 2024
Merged

Conversation

mononaut
Copy link
Collaborator

No description provided.

@mononaut mononaut requested review from wiz and nymkappa November 18, 2024 20:48
@cla-bot cla-bot bot added the cla-signed label Nov 18, 2024
Copy link
Member
@nymkappa nymkappa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mempool backend crashes if I suspend the services backend

Nov 19 10:38:26 [31690] WARN: No pong received within 10 seconds, terminating connection
Nov 19 10:38:26 [31690] INFO: Acceleration websocket closed
Nov 19 10:38:36 [31690] DEBUG: sending ping to acceleration websocket server
unhandledRejection: Error: WebSocket is not open: readyState 0 (CONNECTING)
    at WebSocket.ping (/Users/nymkappa/mempool/mempool/backend/node_modules/ws/lib/websocket.js:362:13)
    at AccelerationApi.connectWebsocket (/Users/nymkappa/mempool/mempool/backend/dist/api/services/acceleration.js:255:29)
Nov 19 10:38:36 [31690] DEBUG: onExit for signal: unhandledRejection
Nov 19 10:38:36 [31690] DEBUG: onExit for signal: exit

[10:38:36] nymkappa @ /Users/nymkappa/mempool/mempool/backend -> [mononaut/fix-acc-ws-timeout] $

@mononaut
Copy link
Collaborator Author

sorry, I missed that failure mode - should be fixed now.

@mononaut mononaut requested a review from nymkappa November 19, 2024 23:26
@nymkappa
Copy link
Member

Seems fine now. One last thing you could do is better print of the websocket error, that's how I did it in the pool client https://github.com/mempool/transaction-accelerator/pull/74/files

Copy link
Member
@nymkappa nymkappa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested ACK @ ffa5825

@wiz wiz merged commit 4c66bf6 into master Nov 22, 2024
12 checks passed
@wiz wiz deleted the mononaut/fix-acc-ws-timeout branch November 22, 2024 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0