1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 08:34:57 +00:00
serenity/Userland/Libraries/LibProtocol
Andrew Kaster 637f2f2ed6 LibProtocol: Keep reading until an error occurs for buffered reads
When buffering is enabled for the entire protocol request, it's possible
that the entirety of the file data might be available on the first read
of the pipe passed from RequestServer. If the file is then closed on the
RequestServer end, the client would never realize that the file is EOF
and call the user-provided on_finish callback.

By reading until there's an error, we expect to get an EAGAIN or similar
non-blocking pipe error message if there is still more data.
2024-03-06 07:19:10 +01:00
..
CMakeLists.txt Ladybird: Add WebSocket server for use by Lagom networking 2023-08-03 09:55:20 +02:00
Request.cpp LibProtocol: Keep reading until an error occurs for buffered reads 2024-03-06 07:19:10 +01:00
Request.h RequestServer+LibProtocol: Make starting requests fully async 2024-02-26 14:13:37 +01:00
RequestClient.cpp RequestServer+LibProtocol: Make starting requests fully async 2024-02-26 14:13:37 +01:00
RequestClient.h RequestServer+LibProtocol: Make starting requests fully async 2024-02-26 14:13:37 +01:00
WebSocket.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
WebSocket.h Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
WebSocketClient.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
WebSocketClient.h Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30