Show More
@@ -238,10 +238,11 b' def checksocketfamily(name, port=20058):' | |||||
238 | s.bind(('localhost', port)) |
|
238 | s.bind(('localhost', port)) | |
239 | s.close() |
|
239 | s.close() | |
240 | return True |
|
240 | return True | |
241 | except socket.error as exc: |
|
241 | except (socket.error, OSError) as exc: | |
242 | if exc.errno == errno.EADDRINUSE: |
|
242 | if exc.errno == errno.EADDRINUSE: | |
243 | return True |
|
243 | return True | |
244 |
elif exc.errno in (errno.EADDRNOTAVAIL, errno.EPROTONOSUPPORT |
|
244 | elif exc.errno in (errno.EADDRNOTAVAIL, errno.EPROTONOSUPPORT, | |
|
245 | errno.EAFNOSUPPORT): | |||
245 | return False |
|
246 | return False | |
246 | else: |
|
247 | else: | |
247 | raise |
|
248 | raise |
General Comments 0
You need to be logged in to leave comments.
Login now