Skip to content

Conversation

zimathias
Copy link

No description provided.

try:
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1)
except AttributeError:
# not all platforms have SO_REUSEPORT.
Copy link

Choose a reason for hiding this comment

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

Would it make more sense to log and/or crash here, instead of silently continuing?

Copy link
Owner

Choose a reason for hiding this comment

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

warning should be enough imo.

@berkerpeksag
Copy link
Collaborator

#1344 also implements the same feature. I think the main question is do we need to add a new option to enable/disable (#1344 unconditionally use SO_REUSE if it's available so someone may want to disable it) this?

@berkerpeksag
Copy link
Collaborator

berkerpeksag commented Sep 23, 2016

Thanks for the PR, @zimathias. We've decided that there is no need to add a new config for this: #1344 (comment)

I'm closing this as a duplicate of #1131 and #1344.

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.

4 participants