Commit a5acb826 authored by Roman Haefeli's avatar Roman Haefeli
Browse files

one2manybi: do not set timeouts on sockets, since

we use timeout of select.select()
parent 3a3577ae
......@@ -26,14 +26,11 @@ class One2ManyBiProxy(threading.Thread):
raise ValueError('Specified port "%s" is invalid.' % port)
try:
self.source = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
self.source.settimeout(0.1)
self.source.bind((listen_address, one_port))
except socket.error as msg:
raise
try:
self.sink = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
# Make socket non-blocking by setting timeout to 0
self.sink.settimeout(0)
self.sink.bind((listen_address, many_port))
except socket.error as msg:
raise
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment