kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 429159ee3c6873d99fcd2a2bb6b6633f88a06f78
parent 8040103458f6d90167b95969d84d6b42f4df8003
Author: Joris Vink <joris@coders.se>
Date:   Fri,  8 Feb 2019 15:40:00 +0100

reprime idle timer if SSL_accept() fails.

reported by Daniel Chavez (@dacechavez)

Diffstat:
src/connection.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/connection.c b/src/connection.c @@ -281,6 +281,7 @@ kore_connection_handle(struct connection *c) switch (r) { case SSL_ERROR_WANT_READ: case SSL_ERROR_WANT_WRITE: + kore_connection_start_idletimer(c); return (KORE_RESULT_OK); default: kore_debug("SSL_accept(): %s", ssl_errno_s); @@ -309,6 +310,7 @@ kore_connection_handle(struct connection *c) listener = (struct listener *)c->owner; if (listener->connect != NULL) { kore_runtime_connect(listener->connect, c); + kore_connection_start_idletimer(c); return (KORE_RESULT_OK); } }