| 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()
|
|
|