Changeset 278345 in webkit
- Timestamp:
- Jun 2, 2021, 2:07:34 AM (5 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
http/tests/websocket/tests/hybi/inspector/binary_wsh.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r278343 r278345 1 2021-06-02 Youenn Fablet <youenn@apple.com> 2 3 Fix race condition in binary_wsh.py 4 https://bugs.webkit.org/show_bug.cgi?id=226464 5 <rdar://77356905> 6 7 Reviewed by Alex Christensen. 8 9 The web socket server was implemented to send 4 messages as soon as connection is opened and close the connection. 10 The client expects to correctly send a message before the connection is closed. 11 This is not guaranteed by the web socket server, in case the server is very fast closing the connection and the client very slow at sending its message. 12 Given the focus of the test is to validate binary data, change the web socket server to remove the potential race. 13 14 * http/tests/websocket/tests/hybi/inspector/binary_wsh.py: 15 (web_socket_transfer_data): 16 1 17 2021-05-28 Antoine Quint <graouts@webkit.org> 2 18 -
trunk/LayoutTests/http/tests/websocket/tests/hybi/inspector/binary_wsh.py
r215388 r278345 2 2 from mod_pywebsocket import stream 3 3 4 from mod_pywebsocket import msgutil 4 5 5 6 def web_socket_do_extra_handshake(request): … … 8 9 9 10 def web_socket_transfer_data(request): 11 # Make sure to receive a message from client before sending messages. 12 client_message = msgutil.receive_message(request) 10 13 messages_to_send = ['Hello, world!', 'Привет, Мир!', '', all_distinct_bytes()] 11 14 for message in messages_to_send:
Note:
See TracChangeset
for help on using the changeset viewer.