From db63dc58844f0d5d516c185f4b206449b3040454 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 16 Jul 2014 00:37:09 +0500 Subject: [PATCH] drop connection on bad write --- src/mod/endpoints/mod_verto/mod_verto.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mod/endpoints/mod_verto/mod_verto.c b/src/mod/endpoints/mod_verto/mod_verto.c index 54ee5af86d..48286c9d0d 100644 --- a/src/mod/endpoints/mod_verto/mod_verto.c +++ b/src/mod/endpoints/mod_verto/mod_verto.c @@ -548,6 +548,7 @@ static switch_ssize_t ws_write_json(jsock_t *jsock, cJSON **json, switch_bool_t if (r <= 0) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ALERT, "WRITE RETURNED ERROR %ld\n", r); + jsock->drop = 1; } return r;