]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
drop connection on bad write
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 15 Jul 2014 19:37:09 +0000 (00:37 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 15 Jul 2014 19:37:09 +0000 (00:37 +0500)
src/mod/endpoints/mod_verto/mod_verto.c

index 54ee5af86db15c29a8dcb747ae19f029376c4fe0..48286c9d0db5326f602cd2807def7bb0de58341e 100644 (file)
@@ -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;