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

Stream server source fix #134

Merged
merged 10 commits into from
Jan 4, 2022
Merged

Conversation

mithunbharadwaj
Copy link
Collaborator

No description provided.

@mithunbharadwaj mithunbharadwaj self-assigned this Nov 12, 2021
@@ -35,16 +35,18 @@ def __init__(self, app, pipeline, id=None, config=None):
addrline = self.Address.strip()
if " " in addrline:
host, port = self.Address.rsplit(" ", maxsplit=1)
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems to be somehow obsolete code (it does nothing)

self.Socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1)
if self.ReceiveBufferSize > 0:
self.Socket.setsockopt(socket.SOL_SOCKET, socket.SO_RCVBUF, self.ReceiveBufferSize)
if " " in addrline or addrline.count(":") == 1:
Copy link
Contributor

Choose a reason for hiding this comment

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

This will not work for IPv6 addresses

s.listen(int(backlog))
s.setblocking(False)
self.AcceptingSockets.append(s)
if " " in addrline or addrline.count(":") == 1:
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above.

@mithunbharadwaj mithunbharadwaj merged commit ebf17c8 into master Jan 4, 2022
@ateska ateska deleted the stream-servicer-source-fix branch May 19, 2023 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