From: Anthony Minessale Date: Tue, 15 Jul 2014 19:37:09 +0000 (+0500) Subject: drop connection on bad write X-Git-Tag: v1.4.8~10^2~121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db63dc58844f0d5d516c185f4b206449b3040454;p=thirdparty%2Ffreeswitch.git drop connection on bad write --- 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;