mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-04-11 03:31:36 +00:00
BUG/MEDIUM: ssl: Don't call ssl_sock_io_cb() directly.
In the SSL code, when we were waiting for the availability of the crypto engine, once it is ready and its fd's I/O handler is called, don't call ssl_sock_io_cb() directly, instead, call tasklet_wakeup() on the ssl_sock_ctx's tasklet. We were calling ssl_sock_io_cb() with NULL as a tasklet, which used to be fine, but it is no longer true since the fd takeover changes. We could just provide the tasklet, but let's just wake the tasklet, as is done for other FDs, for fairness. This should fix github issue #856. This should be backported into 2.2.
This commit is contained in:
parent
9743f709d0
commit
a459826056
@ -674,7 +674,7 @@ void ssl_async_fd_handler(int fd)
|
||||
/* crypto engine is available, let's notify the associated
|
||||
* connection that it can pursue its processing.
|
||||
*/
|
||||
ssl_sock_io_cb(NULL, ctx, 0);
|
||||
tasklet_wakeup(ctx->wait_event.tasklet);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user