Handle connection closures from proxy peers in async

This commit is contained in:
2023-07-07 21:54:58 +02:00
parent ef3e8475fb
commit ddb6623651
10 changed files with 60 additions and 11 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ static int async_exec(evt_listen_t *evt, async_evt_t r_events) {
int ret, e = errno;
if (r_events & evt->events) {
// specified event(s) occurred
if (evt->socket && !sock_has_pending(evt->socket, 0)) {
if (!(evt->flags & ASYNC_IGNORE_PENDING) && evt->socket && !sock_has_pending(evt->socket, 0)) {
evt->err_cb(evt->arg);
ret = 0;
} else {