Skip to content
Snippets Groups Projects
Commit 2c282073 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

More for #6220, don't timeout idle connections when writetimeout is

set and idletimeout is not.
parent 64590f2b
No related branches found
No related tags found
No related merge requests found
......@@ -242,7 +242,8 @@ int connections_timeout_idle(time_t now)
continue;
}
if( difftime( c->c_activitytime+global_idletimeout, now) < 0 ) {
if( global_idletimeout &&
difftime( c->c_activitytime+global_idletimeout, now) < 0 ) {
/* close it */
connection_closing( c, "idletimeout" );
connection_close( c );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment