Skip to content

Commit

Permalink
rule_list: Update the timeout when setting per-rule timeout_lapse
Browse files Browse the repository at this point in the history
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
smunaut authored and davidjb committed Jul 18, 2012
1 parent 881bedd commit 2510045
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cherokee/rule_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ update_connection (cherokee_connection_t *conn,
if (! NULLI_IS_NULL(ret_config->timeout_lapse)) {
conn->timeout_lapse = ret_config->timeout_lapse;
conn->timeout_header = ret_config->timeout_header;
cherokee_connection_update_timeout (conn);
}
}

Expand Down

0 comments on commit 2510045

Please sign in to comment.