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

Cleanup server helper #1759

Merged
merged 4 commits into from
Nov 22, 2017
Merged

Cleanup server helper #1759

merged 4 commits into from
Nov 22, 2017

Conversation

repeatedly
Copy link
Member

  • Add error handling
  • Reduce memory allocation
  • Reuse built-in buffer

@repeatedly repeatedly added enhancement Feature request or improve operations v0.14 labels Nov 22, 2017
@repeatedly repeatedly self-assigned this Nov 22, 2017
@repeatedly repeatedly requested a review from mururu November 22, 2017 07:24
@repeatedly
Copy link
Member Author

@mururu Could you check this?

@@ -370,6 +370,8 @@ def server_create_udp_socket(shared, bind, port)
sock
end

PEERADDR_FAILED = ["?", "?", "name resolusion failed", "?"]
Copy link
Member

@mururu mururu Nov 22, 2017

Choose a reason for hiding this comment

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

Very minor comment: remote_port usually returns Integer, but it returns String when failed. It is a little confusing. So it seems better to have comment about that it may return string at remote_port definition.

Copy link
Member

@mururu mururu left a comment

Choose a reason for hiding this comment

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

Looks good.

@repeatedly repeatedly merged commit f0efc9d into master Nov 22, 2017
@repeatedly repeatedly deleted the cleanup-server-helper branch November 22, 2017 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature request or improve operations v0.14
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants