Skip to content

Commit 72caf63

Browse files
committed
client_cose: fix proxy event shutdown
depending on the timing, we might still have the timeout set and that would re-enter the connection logic with a client struct free'd. Reported by requiem, thank you!
1 parent fef5d24 commit 72caf63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,7 @@ client_close(struct client *c)
12881288
}
12891289

12901290
if (c->proxyevset &&
1291-
event_pending(&c->proxyev, EV_READ|EV_WRITE, NULL)) {
1291+
event_pending(&c->proxyev, EV_READ|EV_WRITE|EV_TIMEOUT, NULL)) {
12921292
c->proxyevset = 0;
12931293
event_del(&c->proxyev);
12941294
}

0 commit comments

Comments
 (0)