Tests: prevented writing non-chopped frames to the closed socket.
This commit is contained in:
@@ -818,7 +818,6 @@ class TestNodeWebsockets(TestApplicationNode):
|
||||
|
||||
self.check_close(sock, 1002)
|
||||
|
||||
@unittest.skip('not yet')
|
||||
def test_node_websockets_5_1__5_20(self):
|
||||
self.load('websockets/mirror')
|
||||
|
||||
|
||||
@@ -173,7 +173,10 @@ class TestApplicationWebsocket(TestApplicationProto):
|
||||
frame = self.frame_to_send(*args, **kwargs)
|
||||
|
||||
if chopsize is None:
|
||||
try:
|
||||
sock.sendall(frame)
|
||||
except BrokenPipeError:
|
||||
pass
|
||||
|
||||
else:
|
||||
pos = 0
|
||||
|
||||
Reference in New Issue
Block a user