diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-01-03 22:45:18 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-01-03 22:45:18 +0100 |
commit | af526c6c2ede713237048a91aaddfa2ce621dc3c (patch) | |
tree | e31196f04badda899cd79937cb4afd0caf741187 /client.c | |
parent | b7c85a2819b3869279a669d5681f574824589c6c (diff) |
use pipes instead of a socketpair, EOF handling is broken with sockets
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -277,7 +277,8 @@ void client_poll_post_data(struct client *cl) break; if (d->data_send) - d->data_send(cl, buf, cur_len); + cur_len = d->data_send(cl, buf, cur_len); + r->content_length -= cur_len; ustream_consume(cl->us, cur_len); continue; |