diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-09-04 13:19:59 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-09-04 13:19:59 +0200 |
commit | 57a1dda8f31878282e554bb98d5cc81307edea49 (patch) | |
tree | 16d7f0302d785e767ecc00fc158866f6bb432e43 /uclient-http.c | |
parent | b63202344bf2e01c2054858212a9737f39170a15 (diff) | |
download | uclient-57a1dda8f31878282e554bb98d5cc81307edea49.tar.gz |
http: terminate old connection in uclient_http_connect after incomplete request processing
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'uclient-http.c')
-rw-r--r-- | uclient-http.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/uclient-http.c b/uclient-http.c index ff1bcc4..7c5bc63 100644 --- a/uclient-http.c +++ b/uclient-http.c @@ -797,6 +797,9 @@ static int uclient_http_connect(struct uclient *cl) struct uclient_http *uh = container_of(cl, struct uclient_http, uc); int ret; + if (!cl->eof || uh->disconnect) + uclient_http_disconnect(uh); + uclient_http_init_request(uh); if (uh->us) |