[asterisk-commits] moy: branch moy/webrtc-trunk r401304 - /team/moy/webrtc-trunk/res/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Oct 21 01:40:25 CDT 2013


Author: moy
Date: Mon Oct 21 01:40:23 2013
New Revision: 401304

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=401304
Log:
Print error string when failing to read from websocket

Modified:
    team/moy/webrtc-trunk/res/res_http_websocket.c

Modified: team/moy/webrtc-trunk/res/res_http_websocket.c
URL: http://svnview.digium.com/svn/asterisk/team/moy/webrtc-trunk/res/res_http_websocket.c?view=diff&rev=401304&r1=401303&r2=401304
==============================================================================
--- team/moy/webrtc-trunk/res/res_http_websocket.c (original)
+++ team/moy/webrtc-trunk/res/res_http_websocket.c Mon Oct 21 01:40:23 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