Просмотр исходного кода

- In active probing mode (ds_probing_mode=1) disable gateways not only on "408" but also on any non-successful reply (as per ds_reply_codes)
(e.g. SEMS replies with "503" when in shutdown mode)

Carsten Bock 14 лет назад
Родитель
Сommit
2a9b1cdc98
2 измененных файлов с 2 добавлено и 4 удалено
  1. 1 3
      modules_k/dispatcher/dispatch.c
  2. 1 1
      modules_k/dispatcher/doc/dispatcher_admin.xml

+ 1 - 3
modules_k/dispatcher/dispatch.c

@@ -2342,9 +2342,7 @@ static void ds_options_callback( struct cell *t, int type,
 			LM_ERR("Setting the state failed (%.*s, group %d)\n", uri.len,
 					uri.s, group);
 		}
-	}
-	if(ds_probing_mode==1 && ps->code == 408)
-	{
+	} else if (ds_probing_mode==1) {
 
 		if (faked_msg_init() < 0)
 		{

+ 1 - 1
modules_k/dispatcher/doc/dispatcher_admin.xml

@@ -586,7 +586,7 @@ modparam("dispatcher", "force_dst", 1)
  		<para>
 		Controls what gateways are tested to see if they are reachable. If set
 		to 0, only the gateways with state PROBING are tested, if set to 1, all
-		gateways are tested. If set to 1 and the response is 408 (timeout),
+		gateways are tested. If set to 1 and the is failure to the above list,
 		an active gateway is set to PROBING state.
  		</para>
  		<para>