mod_hash: use esl_recv_timed with a 5000ms timeout when doing api commands

This commit is contained in:
Mathieu Rene 2010-07-20 16:24:30 -04:00
parent 49d6c803d1
commit 27d8378f97
1 changed files with 1 additions and 1 deletions

View File

@ -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);