diff options
| author | liris <liris.pp@gmail.com> | 2018-08-14 15:03:00 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-14 15:03:00 +0900 |
| commit | a0c39c0c44db503a2ae271ebafbdf91805760128 (patch) | |
| tree | 012a5b597ba3daf7287d722d1aae5ca0898bf43b /websocket | |
| parent | 434c7ff73a1b7f2c172736e2533d03328337c330 (diff) | |
| parent | fe65fee4d3d2917a6bc5570a9be0087860da6ef4 (diff) | |
| download | websocket-client-a0c39c0c44db503a2ae271ebafbdf91805760128.tar.gz | |
Merge pull request #448 from mfitzpatrick/ping_thread_needs_enable_multithread
Enable multithreading protection with ping_interval
Diffstat (limited to 'websocket')
| -rw-r--r-- | websocket/_app.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/websocket/_app.py b/websocket/_app.py index b52aff7..a711d81 100644 --- a/websocket/_app.py +++ b/websocket/_app.py @@ -230,7 +230,8 @@ class WebSocketApp(object): self.sock = WebSocket( self.get_mask_key, sockopt=sockopt, sslopt=sslopt, fire_cont_frame=self.on_cont_message and True or False, - skip_utf8_validation=skip_utf8_validation) + skip_utf8_validation=skip_utf8_validation, + enable_multithread=True if ping_interval else False) self.sock.settimeout(getdefaulttimeout()) self.sock.connect( self.url, header=self.header, cookie=self.cookie, |
