mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-29 14:44:17 +00:00
drop connection on bad write
This commit is contained in:
1 parent
6f12de990a
commit
db63dc5884
1 file changed
+1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user