[asterisk-commits] moy: branch moy/webrtc-12 r401303 - /team/moy/webrtc-12/res/res_http_websocket.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Oct 21 01:35:22 CDT 2013
Author: moy
Date: Mon Oct 21 01:35:21 2013
New Revision: 401303
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=401303
Log:
Print error string when failing to read from websocket
Modified:
team/moy/webrtc-12/res/res_http_websocket.c
Modified: team/moy/webrtc-12/res/res_http_websocket.c
URL: http://svnview.digium.com/svn/asterisk/team/moy/webrtc-12/res/res_http_websocket.c?view=diff&rev=401303&r1=401302&r2=401303
==============================================================================
--- team/moy/webrtc-12/res/res_http_websocket.c (original)
+++ team/moy/webrtc-12/res/res_http_websocket.c Mon Oct 21 01:35:21 2013
@@ -373,7 +373,7 @@
clearerr(session->f); \
rlen = fread(rbuf, 1, xlen, session->f); \
if (0 == rlen && ferror(session->f) && errno != EAGAIN) { \
- ast_log(LOG_ERROR, "Error reading from web socket!\n"); \
+ ast_log(LOG_ERROR, "Error reading from web socket: %s\n", strerror(errno)); \
(*opcode) = AST_WEBSOCKET_OPCODE_CLOSE; \
session->closing = 1; \
return 0; \
More information about the asterisk-commits
mailing list