From: Mathieu Rene Date: Tue, 20 Jul 2010 20:24:30 +0000 (-0400) Subject: mod_hash: use esl_recv_timed with a 5000ms timeout when doing api commands X-Git-Tag: v1.2-rc1~526^2~144 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27d8378f975e0b3764def720afdee9473d847111;p=thirdparty%2Ffreeswitch.git mod_hash: use esl_recv_timed with a 5000ms timeout when doing api commands --- diff --git a/src/mod/applications/mod_hash/mod_hash.c b/src/mod/applications/mod_hash/mod_hash.c index 9ccfaf800a..f4eec4f3c1 100644 --- a/src/mod/applications/mod_hash/mod_hash.c +++ b/src/mod/applications/mod_hash/mod_hash.c @@ -750,7 +750,7 @@ static void *SWITCH_THREAD_FUNC limit_remote_thread(switch_thread_t *thread, voi remote->state = REMOTE_UP; } } else { - if (esl_send_recv(&remote->handle, "api hash_dump limit") != ESL_SUCCESS) { + if (esl_send_recv_timed(&remote->handle, "api hash_dump limit", 5000) != ESL_SUCCESS) { esl_disconnect(&remote->handle); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Disconnected from remote FreeSWITCH (%s) at %s:%d\n", remote->name, remote->host, remote->port);