mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-10-26 12:24:46 +00:00
write_websocket_frame and the request-body write in open_stream_ called Stream::write once and only failed on a negative return, so a short write (one record per mbedtls_ssl_write call, or SO_SNDTIMEO expiring after part of the data went out) dropped the rest of the frame or body. Route both through write_data, as the other body writers do. Co-authored-by: yhirose <yuji.hirose.bug@gmail.com>