Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Unified Diff: net/data/websocket/close-code-and-reason_wsh.py

Issue 415953003: Update net/data/websocket/close-code-and-reason_wsh.py (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/data/websocket/close-code-and-reason_wsh.py
diff --git a/net/data/websocket/close-code-and-reason_wsh.py b/net/data/websocket/close-code-and-reason_wsh.py
index c98bfd4418a9149ab78510d725d45ea894667352..cb9f4f229e817a82e4125e5e50f59f7516d93c71 100644
--- a/net/data/websocket/close-code-and-reason_wsh.py
+++ b/net/data/websocket/close-code-and-reason_wsh.py
@@ -23,3 +23,6 @@ def web_socket_transfer_data(request):
code, reason = line.split(' ', 1)
data = struct.pack('!H', int(code)) + reason.encode('utf-8')
request.connection.write(stream.create_close_frame(data))
+ request.server_terminated = True
+ # Wait for Close frame from client.
+ request.ws_stream.receive_message()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698