Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: commits

[3665] cherokee/trunk/cherokee/socket.c: Print an error if socket() fails.

 

 

Cherokee commits RSS feed   Index | Next | Previous | View Threaded


cherokee at cherokee-project

Sep 16, 2009, 11:39 AM

Post #1 of 1 (258 views)
Permalink
[3665] cherokee/trunk/cherokee/socket.c: Print an error if socket() fails.

Revision: 3665
http://svn.cherokee-project.com/changeset/3665
Author: alo
Date: 2009-09-16 20:39:38 +0200 (Wed, 16 Sep 2009)

Log Message:
-----------
Print an error if socket() fails. It should shed some light on the 503
proxy responses.

Modified Paths:
--------------
cherokee/trunk/cherokee/socket.c

Modified: cherokee/trunk/cherokee/socket.c
===================================================================
--- cherokee/trunk/cherokee/socket.c 2009-09-15 13:48:42 UTC (rev 3664)
+++ cherokee/trunk/cherokee/socket.c 2009-09-16 18:39:38 UTC (rev 3665)
@@ -423,6 +423,7 @@
*/
sock->socket = socket (type, SOCK_STREAM, 0);
if (sock->socket < 0) {
+ LOG_ERRNO (errno, cherokee_err_error, "Could not create socket: ${errno}\n");
return ret_error;
}

Cherokee commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.