Klaus Demo nginx / 96d73e2
Fixed loop in ngx_writev_chain() and ngx_solaris_sendfilev_chain(). The "complete" flag wasn't cleared on loop iteration start, resulting in broken behaviour if there were more than IOV_MAX buffers and first iteration was fully completed (and hence the "complete" flag was set to 1). Maxim Dounin 10 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
7373
7474
7575 send = 0;
76 complete = 0;
7776
7877 vec.elts = sfvs;
7978 vec.size = sizeof(sendfilevec_t);
8685 fprev = 0;
8786 sfv = NULL;
8887 eintr = 0;
88 complete = 0;
8989 sent = 0;
9090 prev_send = send;
9191
5353 }
5454
5555 send = 0;
56 complete = 0;
5756
5857 vec.elts = iovs;
5958 vec.size = sizeof(struct iovec);
6463 prev = NULL;
6564 iov = NULL;
6665 eintr = 0;
66 complete = 0;
6767 prev_send = send;
6868
6969 vec.nelts = 0;