src/server/util/io.c

changeset 707
5fb102d2c745
parent 697
3ddfd45d4e47
--- a/src/server/util/io.c	Wed Feb 25 23:14:47 2026 +0100
+++ b/src/server/util/io.c	Thu Feb 26 21:35:53 2026 +0100
@@ -360,7 +360,7 @@
 
 WSBool httpstream_eof(IOStream *st) {
     HttpStream *http = (HttpStream*)st;
-    return http->read_eof;
+    return http->read_eof || http->read == http->max_read;
 }
 
 int64_t httpstream_written(IOStream *st) {

mercurial