summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNgai-Fung Yip <yyfeng88625@gmail.com>2019-04-22 15:44:44 +0800
committerNgai-Fung Yip <yyfeng88625@gmail.com>2019-04-22 15:44:44 +0800
commitb3c0df70c4b63dfc09d43cae33f48dbbfcc94b92 (patch)
tree0709f9ebadf00380ed4b99d57d5e4412fa523dff
parent3c25814664fef5b78716ed8841123ed1c0d17824 (diff)
downloadwebsocket-client-b3c0df70c4b63dfc09d43cae33f48dbbfcc94b92.tar.gz
fix the compatible issue with gevent+dnspython
-rw-r--r--websocket/_http.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/websocket/_http.py b/websocket/_http.py
index 5b9a26d..c642c28 100644
--- a/websocket/_http.py
+++ b/websocket/_http.py
@@ -140,7 +140,7 @@ def _get_addrinfo_list(hostname, port, is_secure, proxy):
try:
if not phost:
addrinfo_list = socket.getaddrinfo(
- hostname, port, 0, 0, socket.SOL_TCP)
+ hostname, port, 0, socket.SOCK_STREAM, socket.SOL_TCP)
return addrinfo_list, False, None
else:
pport = pport and pport or 80