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

server: Use local addr var in version handler. #1258

Merged

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Jun 4, 2018

This requires #1256.

This modifies the OnVersion handler for server peers to use a local variable for the remote address of the peer in order to avoid grabbing the mutex multiple times.

There are no functional changes.

@davecgh davecgh added this to the 1.3.0 milestone Jun 4, 2018
@davecgh davecgh force-pushed the server_onversion_use_local_for_net_addr branch from f114f61 to 6b85307 Compare June 4, 2018 03:09
Copy link
Member

@dajohi dajohi left a comment

Choose a reason for hiding this comment

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

ok

@davecgh davecgh force-pushed the server_onversion_use_local_for_net_addr branch from 6b85307 to 9b8defe Compare June 5, 2018 02:47
This modifies the OnVersion handler for server peers to use a local
variable for the remote address of the peer in order to avoid grabbing
the mutex multiple times.

There are no functional changes.
@davecgh davecgh force-pushed the server_onversion_use_local_for_net_addr branch from 9b8defe to 750f274 Compare June 5, 2018 16:02
@davecgh davecgh merged commit 750f274 into decred:master Jun 5, 2018
@davecgh davecgh deleted the server_onversion_use_local_for_net_addr branch June 5, 2018 16:20
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.

3 participants