Skip to content
This repository
Browse code

rule_list: Update the timeout when setting per-rule timeout_lapse

It's required or the new timeout_lapse might not be taken into
account since the connection expiration time that's in conn->timeout
has been computed with the previous timeout_lapse

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
  • Loading branch information...
commit 2510045726009f61cb8cfb969c0cf5a4ad2b03b7 1 parent 881bedd
smunaut authored davidjb committed

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

  1. 1  cherokee/rule_list.c
1  cherokee/rule_list.c
@@ -78,6 +78,7 @@ update_connection (cherokee_connection_t   *conn,
78 78
 	if (! NULLI_IS_NULL(ret_config->timeout_lapse)) {
79 79
 		conn->timeout_lapse  = ret_config->timeout_lapse;
80 80
 		conn->timeout_header = ret_config->timeout_header;
  81
+		cherokee_connection_update_timeout (conn);
81 82
 	}
82 83
 }
83 84
 

0 notes on commit 2510045

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