fix(websocket): preserve invalid listener detection
This commit is contained in:
1 parent
bd9b74e2c7
commit
22cbfc2fb5
2 files changed
+33
-2
No files matched your search
@@ -554,7 +554,7 @@ class WebSocketChannel(BaseChannel):
|
||||
try:
|
||||
return bool(sock.getsockopt(socket.SOL_SOCKET, socket.SO_ACCEPTCONN))
|
||||
except OSError as exc:
|
||||
if exc.errno in (errno.ENOPROTOOPT, errno.EOPNOTSUPP, errno.EINVAL):
|
||||
if exc.errno in (errno.ENOPROTOOPT, errno.EOPNOTSUPP):
|
||||
return True
|
||||
raise
|
||||
|
||||
|
||||
Reference in new issue
Block a user