mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-10 13:04:23 -04: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;
|
struct evcon_requestq requests;
|
||||||
|
|
||||||
|
evhttp_connection_reset_(evcon);
|
||||||
if (evcon->retry_max < 0 || evcon->retry_cnt < evcon->retry_max) {
|
if (evcon->retry_max < 0 || evcon->retry_cnt < evcon->retry_max) {
|
||||||
struct timeval tv_retry = evcon->initial_retry_timeout;
|
struct timeval tv_retry = evcon->initial_retry_timeout;
|
||||||
int i;
|
int i;
|
||||||
@ -1306,7 +1307,6 @@ evhttp_connection_cb_cleanup(struct evhttp_connection *evcon)
|
|||||||
evcon->retry_cnt++;
|
evcon->retry_cnt++;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
evhttp_connection_reset_(evcon);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* User callback can do evhttp_make_request() on the same
|
* User callback can do evhttp_make_request() on the same
|
||||||
|
Loading…
x
Reference in New Issue
Block a user