Remove zero-length buffers from the write queue.
Zero-length buffers were written out but not removed, so the write loop never terminated. Fixes failing node.js test test/simple/test-http-1.0.js
This commit is contained in:
parent
e147155821
commit
f7a3789ee7
@ -632,7 +632,7 @@ static uv_req_t* uv__write(uv_tcp_t* tcp) {
|
||||
/* Successful write */
|
||||
|
||||
/* Update the counters. */
|
||||
while (n > 0) {
|
||||
while (n >= 0) {
|
||||
uv_buf_t* buf = &(req->bufs[req->write_index]);
|
||||
size_t len = buf->len;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user