Skip to content
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

Rahul/supress websocket connection reattempt #5649

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

patnir
Copy link
Contributor

@patnir patnir commented Nov 13, 2024

Summary

image

Testing Plan

Documentation

Does this change require any updates to the Iron Fish Docs (ex. the RPC API
Reference
)? If yes, link a
related documentation pull request for the website.

[ ] Yes

Breaking Change

Is this a breaking change? If yes, add notes below on why this is breaking and label it with breaking-change-rpc or breaking-change-sdk.

[ ] Yes

@patnir patnir changed the base branch from master to staging November 13, 2024 20:28
this.logger.warn('Already have a WebSocket connection, ignoring the new one')
this.logger.debug(
`Already have a WebSocket connection with ${
connection.address?.host || 'Unknown host'
Copy link
Member

Choose a reason for hiding this comment

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

Yeah I'm fine with bumping down this log level. I think given we've let the error ride for a while without investigating it, it'd be better to bump down to a debug to clean up our log output.

The only thing I'd suggest changing here is I think we should log this.displayName instead of connection.address.host, since peers are unique based on their identity rather than their network address. Or at least log something like "Peer {displayName} already has a websocket connection to {this.address}, ignoring new one at ${connection.address}"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

@patnir patnir marked this pull request as ready for review November 25, 2024 20:30
@patnir patnir requested a review from a team as a code owner November 25, 2024 20:30
@patnir patnir force-pushed the rahul/supress-websocket-connection-reattempt branch from 3e33487 to 5e5dab1 Compare November 25, 2024 20:31
We can move this to a debug log, as it is not a critical error.
@patnir patnir force-pushed the rahul/supress-websocket-connection-reattempt branch from 5e5dab1 to be662d9 Compare November 25, 2024 20:33
@patnir patnir enabled auto-merge (squash) November 25, 2024 20:35
@patnir patnir merged commit 750cdf1 into staging Nov 25, 2024
8 checks passed
@patnir patnir deleted the rahul/supress-websocket-connection-reattempt branch November 25, 2024 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants