src/server/util/io.c

changeset 707
5fb102d2c745
parent 697
3ddfd45d4e47
equal deleted inserted replaced
706:df64b4b79912 707:5fb102d2c745
358 return 0; 358 return 0;
359 } 359 }
360 360
361 WSBool httpstream_eof(IOStream *st) { 361 WSBool httpstream_eof(IOStream *st) {
362 HttpStream *http = (HttpStream*)st; 362 HttpStream *http = (HttpStream*)st;
363 return http->read_eof; 363 return http->read_eof || http->read == http->max_read;
364 } 364 }
365 365
366 int64_t httpstream_written(IOStream *st) { 366 int64_t httpstream_written(IOStream *st) {
367 HttpStream *http = (HttpStream*)st; 367 HttpStream *http = (HttpStream*)st;
368 return http->written; 368 return http->written;

mercurial