mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
Merge remote-tracking branch 'origin/pr/175'
This commit is contained in:
commit
c51c85d397
2
http.c
2
http.c
@ -1285,6 +1285,7 @@ evhttp_connection_cb_cleanup(struct evhttp_connection *evcon)
|
||||
{
|
||||
struct evcon_requestq requests;
|
||||
|
||||
evhttp_connection_reset_(evcon);
|
||||
if (evcon->retry_max < 0 || evcon->retry_cnt < evcon->retry_max) {
|
||||
struct timeval tv_retry = evcon->initial_retry_timeout;
|
||||
int i;
|
||||
@ -1306,7 +1307,6 @@ evhttp_connection_cb_cleanup(struct evhttp_connection *evcon)
|
||||
evcon->retry_cnt++;
|
||||
return;
|
||||
}
|
||||
evhttp_connection_reset_(evcon);
|
||||
|
||||
/*
|
||||
* User callback can do evhttp_make_request() on the same
|
||||
|
Loading…
x
Reference in New Issue
Block a user