From: Felix Fietkau Date: Thu, 4 Sep 2014 11:19:59 +0000 (+0200) Subject: http: terminate old connection in uclient_http_connect after incomplete request proce... X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=57a1dda8f31878282e554bb98d5cc81307edea49;p=oweals%2Fuclient.git http: terminate old connection in uclient_http_connect after incomplete request processing Signed-off-by: Felix Fietkau --- 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)