Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ssl: Restore the server default timeout_lapse once SSL negotiation is…

… done

The timeout_lapse was replaced by the SSL negotiation timeout during the
accept. We need to restore it to the proper value once the SSL stuff is
over with.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
  • Loading branch information...
commit 881bedd66fb11bde6a6a5065bb7748aa42ba640a 1 parent afdda14
@smunaut smunaut authored davidjb committed
Showing with 2 additions and 0 deletions.
  1. +2 −0  cherokee/thread.c
View
2  cherokee/thread.c
@@ -814,6 +814,8 @@ process_active_connections (cherokee_thread_t *thd)
/* Set mode and update timeout
*/
conn_set_mode (thd, conn, socket_reading);
+
+ conn->timeout_lapse = srv->timeout;
cherokee_connection_update_timeout (conn);
conn->phase = phase_reading_header;
Please sign in to comment.
Something went wrong with that request. Please try again.