BUG/MINOR: ssl: do not call directly the conn_fd_handler from async_fd_handler
This patch modifies the way to re-enable the connection from the async fd
handler calling conn_update_sock_polling instead of the conn_fd_handler.
It also ensures that the polling is really stopped on the async fd.
diff --git a/src/ssl_sock.c b/src/ssl_sock.c
index f9b236a..af09cfb 100644
--- a/src/ssl_sock.c
+++ b/src/ssl_sock.c
@@ -369,17 +369,19 @@
static void ssl_async_fd_handler(int fd)
{
struct connection *conn = fdtab[fd].owner;
- int conn_fd = conn->t.sock.fd;
/* fd is an async enfine fd, we must stop
* to poll this fd until it is requested
*/
+ fd_stop_recv(fd);
fd_cant_recv(fd);
/* crypto engine is available, let's notify the associated
* connection that it can pursue its processing.
*/
- conn_fd_handler(conn_fd);
+ __conn_sock_want_recv(conn);
+ __conn_sock_want_send(conn);
+ conn_update_sock_polling(conn);
}
/*