mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-25 07:01:09 +00:00
Print error details when set nonblock fails
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@393757 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -65,7 +65,8 @@ struct ari_websocket_session *ari_websocket_session_create(
|
|||||||
|
|
||||||
if (ast_websocket_set_nonblock(ws_session) != 0) {
|
if (ast_websocket_set_nonblock(ws_session) != 0) {
|
||||||
ast_log(LOG_ERROR,
|
ast_log(LOG_ERROR,
|
||||||
"Stasis web socket failed to set nonblock; closing\n");
|
"ARI web socket failed to set nonblock; closing: %s\n",
|
||||||
|
strerror(errno));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user