Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GStreamer
gst-examples
Commits
7445fc49
Commit
7445fc49
authored
May 01, 2020
by
Matthew Waters
🐨
Committed by
Matthew Waters
May 06, 2020
Browse files
signalling/server: python 3.8 asyncio has it's own TimeoutError
parent
3a86a37c
Changes
1
Hide whitespace changes
Inline
Side-by-side
webrtc/signalling/simple_server.py
View file @
7445fc49
...
...
@@ -15,8 +15,7 @@ import asyncio
import
websockets
import
argparse
import
http
from
concurrent.futures._base
import
TimeoutError
import
concurrent
class
WebRTCSimpleServer
(
object
):
...
...
@@ -58,7 +57,7 @@ class WebRTCSimpleServer(object):
while
msg
is
None
:
try
:
msg
=
await
asyncio
.
wait_for
(
ws
.
recv
(),
self
.
keepalive_timeout
)
except
TimeoutError
:
except
(
asyncio
.
exceptions
.
TimeoutError
,
concurrent
.
futures
.
_base
.
TimeoutError
)
:
print
(
'Sending keepalive ping to {!r} in recv'
.
format
(
raddr
))
await
ws
.
ping
()
return
msg
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment