f2abbb275801a280a3719e369079058c7e8c7cee
[WebKit-https.git] / LayoutTests / http / tests / websocket / tests / hixie76 / frame-length-overflow_wsh.py
1 from mod_pywebsocket import handshake
2
3
4 def web_socket_do_extra_handshake(request):
5     pass
6
7
8 def web_socket_transfer_data(request):
9     msg = 16 * '\xff'
10     request.connection.write(msg)
11     raise handshake.AbortedByUserException('Abort the connection') # Prevents pywebsocket from starting closing handshake.