* add py37 to travisci

* use dist:xenial for py37

* sudo: true in .travici

* bump websockets version for py37 support and fix unit tests
This commit is contained in:
7
2018-07-03 22:07:08 -07:00
committed by Raphael Deem
parent 9092ee9f0e
commit f9b29fd7e7
7 changed files with 16 additions and 8 deletions

View File

@@ -665,7 +665,7 @@ def serve(host, port, request_handler, error_handler, before_start=None,
for conn in connections:
if hasattr(conn, "websocket") and conn.websocket:
coros.append(
conn.websocket.close_connection(after_handshake=True)
conn.websocket.close_connection()
)
else:
conn.close()

View File

@@ -116,7 +116,7 @@ class GunicornWorker(base.Worker):
for conn in self.connections:
if hasattr(conn, "websocket") and conn.websocket:
coros.append(
conn.websocket.close_connection(after_handshake=False)
conn.websocket.close_connection()
)
else:
conn.close()