- fixed #102
This commit is contained in:
@@ -157,6 +157,10 @@ example::
|
|||||||
ChangeLog
|
ChangeLog
|
||||||
============
|
============
|
||||||
|
|
||||||
|
- v0.17.0
|
||||||
|
|
||||||
|
- can't set timeout on a standing websocket connection (#102)
|
||||||
|
|
||||||
- v0.16.0
|
- v0.16.0
|
||||||
|
|
||||||
- lock some method for multithread. (#92)
|
- lock some method for multithread. (#92)
|
||||||
|
2
setup.py
2
setup.py
@@ -1,7 +1,7 @@
|
|||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
VERSION = "0.16.0a"
|
VERSION = "0.17.0"
|
||||||
NAME="websocket-client"
|
NAME="websocket-client"
|
||||||
|
|
||||||
install_requires = ["six"]
|
install_requires = ["six"]
|
||||||
|
@@ -383,6 +383,8 @@ class WebSocket(object):
|
|||||||
timeout: timeout time(second).
|
timeout: timeout time(second).
|
||||||
"""
|
"""
|
||||||
self._timeout = timeout
|
self._timeout = timeout
|
||||||
|
if self.sock:
|
||||||
|
self.sock.settimeout(timeout)
|
||||||
|
|
||||||
timeout = property(gettimeout, settimeout)
|
timeout = property(gettimeout, settimeout)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user