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