Commit 899c2bb9 authored by Max Kellermann's avatar Max Kellermann

input/curl: unregister removed sockets from epoll

Fixes a crash bug. See code comment.
parent f8f95e2d
......@@ -192,7 +192,15 @@ public:
:SocketMonitor(_fd, _loop), multi(_multi) {}
~CurlSocket() {
Abandon();
/* TODO: sometimes, CURL uses CURL_POLL_REMOVE after
closing the socket, and sometimes, it uses
CURL_POLL_REMOVE just to move the (still open)
connection to the pool; in the first case,
Abandon() would be most appropriate, but it breaks
the second case - is that a CURL bug? is there a
better solution? */
Steal();
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment