]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
server : handle unsuccessful sink.write in chunked stream provider (#21478)
authorlainon1 <redacted>
Mon, 6 Apr 2026 12:03:02 +0000 (13:03 +0100)
committerGitHub <redacted>
Mon, 6 Apr 2026 12:03:02 +0000 (14:03 +0200)
commit482d862bcbf813f5a8393ac05a2c31c647fc2984
treeacd14ce9576dd1ca2f4683126b056b99c8542e3a
parent3979f2bb08dd003fd979549600b835dc00a56e50
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.
tools/server/server-http.cpp