Back to feed

b8676

Apr 6, 2026
Meta/llama.cppCLIvb8676

server : handle unsuccessful sink.write in chunked stream provider (#21478)

Check the return value of sink.write() in the chunked content provider and return false when the write fails, matching cpp-httplib's own streaming contract. This prevents logging chunks as sent when the sink rejected them and properly aborts the stream on connection failure.

macOS/iOS:

Linux:

Windows:

openEuler: