Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(531)

Unified Diff: examples/wssrv.py

Issue 8307045: listen on multiple addresses (and families) (Closed)
Patch Set: update example scripts Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « examples/mpsrv.py ('k') | srv.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/wssrv.py
===================================================================
--- a/examples/wssrv.py
+++ b/examples/wssrv.py
@@ -135,12 +135,12 @@
@tulip.task
def start_server(self, writer):
- sock = yield from self.loop.start_serving(
+ socks = yield from self.loop.start_serving(
lambda: HttpServer(
debug=True, parent=writer, clients=self.clients),
sock=self.sock)
print('Starting srv worker process {} on {}'.format(
- os.getpid(), sock.getsockname()))
+ os.getpid(), socks[0].getsockname()))
@tulip.task
def heartbeat(self):
« no previous file with comments | « examples/mpsrv.py ('k') | srv.py » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b