From 70014b8fe8624098d8a16b1e96e2521cb0722718 Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Fri, 20 Nov 2015 12:12:48 +0000 Subject: [PATCH] Bug 15006: Introduce client_timeout in SIPconfig.xml Content-Type: text/plain; charset=utf-8 Most selfchecks have persistent connections and send a periodic status request at intervals (approx every 5mins appears the norm) The timeout was dropping connections by default every 30secs which for the client appears as a very flakey network. This patch adds a separate parameter client_timeout that can be used if you do want to force a disconnect if the client sends no requests for a period. The sample config sets it to 600, but you can also define a 0 value meaning no timeout. If the parameter is not defined, it will fallback to service timeout. Signed-off-by: Marcel de Rooy Restored this patch from Colin in order to separate it from the get_timeout patch. Adjusted the commit message slightly. The original value of 600 from Colin's earlier patch may give less discussion than setting to 0 (no timeout) in a later proposal. Signed-off-by: Srdjan --- etc/SIPconfig.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/etc/SIPconfig.xml b/etc/SIPconfig.xml index fc7635e..c61a6c7 100644 --- a/etc/SIPconfig.xml +++ b/etc/SIPconfig.xml @@ -32,7 +32,15 @@ port="127.0.0.1:6001/tcp" transport="RAW" protocol="SIP/2.00" + client_timeout="600" timeout="60" /> + -- 1.7.10.4