-
Notifications
You must be signed in to change notification settings - Fork 9
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
Conversation
bspump/ipc/datagram.py
Outdated
@@ -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) |
There was a problem hiding this comment.
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)
bspump/ipc/datagram.py
Outdated
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: |
There was a problem hiding this comment.
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
bspump/ipc/stream_server_source.py
Outdated
s.listen(int(backlog)) | ||
s.setblocking(False) | ||
self.AcceptingSockets.append(s) | ||
if " " in addrline or addrline.count(":") == 1: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
No description provided.