Skip to content
This repository
Browse code

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 authored June 15, 2012 davidjb committed July 18, 2012

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  cherokee/thread.c
2  cherokee/thread.c
@@ -814,6 +814,8 @@ process_active_connections (cherokee_thread_t *thd)
814 814
 				/* Set mode and update timeout
815 815
 				 */
816 816
 				conn_set_mode (thd, conn, socket_reading);
  817
+
  818
+				conn->timeout_lapse  = srv->timeout;
817 819
 				cherokee_connection_update_timeout (conn);
818 820
 
819 821
 				conn->phase = phase_reading_header;

0 notes on commit 881bedd

Please sign in to comment.
Something went wrong with that request. Please try again.