mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 13:02:09 +02:00
Use blocking mode for socket writes to ensure large response bodies (like 1MB+ HTML pages) are fully written without EAGAIN errors. The socket is temporarily set to blocking mode during the write operation. Also improve error handling by logging failed sends with the message size and error details. Additionally, when response content claims to be text but isn't valid UTF-8, fall back to base64 encoding instead of returning empty content.
11 KiB
11 KiB