mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-16 05:32:50 +00:00
FS-6103 --resolve
This commit is contained in:
parent
756ba1c8a8
commit
a4dfb5463f
@ -594,7 +594,7 @@ abyss_bool websocket_hook(TSession *r)
|
|||||||
|
|
||||||
wsh = ws_init(r);
|
wsh = ws_init(r);
|
||||||
if (!wsh) {
|
if (!wsh) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "websocket error %d\n", ret);
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "websocket memory error\n");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -311,7 +311,6 @@ issize_t ws_raw_read(wsh_t *wsh, void *data, size_t bytes)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return r;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
issize_t ws_raw_write(wsh_t *wsh, void *data, size_t bytes)
|
issize_t ws_raw_write(wsh_t *wsh, void *data, size_t bytes)
|
||||||
@ -331,13 +330,11 @@ issize_t ws_raw_write(wsh_t *wsh, void *data, size_t bytes)
|
|||||||
} else {
|
} else {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return r;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
wsh_t * ws_init(ws_tsession_t *tsession)
|
wsh_t * ws_init(ws_tsession_t *tsession)
|
||||||
{
|
{
|
||||||
wsh_t *wsh = malloc(sizeof(*wsh));
|
wsh_t *wsh = (wsh_t *)malloc(sizeof(*wsh));
|
||||||
|
|
||||||
if (!wsh) return NULL;
|
if (!wsh) return NULL;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user