You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2010/07/01 17:46:29 UTC

svn commit: r959700 - /trafficserver/traffic/trunk/iocore/net/Connection.cc

Author: zwoop
Date: Thu Jul  1 15:46:29 2010
New Revision: 959700

URL: http://svn.apache.org/viewvc?rev=959700&view=rev
Log:
TS-247: Errors on failing to bind / listen on a specified port.

Tested: FC13

This also bails out on such situations, I think it's the right thing
to do (i.e. fail early and fast). This does not "fix" the segfault,
that is a separate issue and happens on all "exits" like this.

Modified:
    trafficserver/traffic/trunk/iocore/net/Connection.cc

Modified: trafficserver/traffic/trunk/iocore/net/Connection.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/iocore/net/Connection.cc?rev=959700&r1=959699&r2=959700&view=diff
==============================================================================
--- trafficserver/traffic/trunk/iocore/net/Connection.cc (original)
+++ trafficserver/traffic/trunk/iocore/net/Connection.cc Thu Jul  1 15:46:29 2010
@@ -334,5 +334,6 @@ Server::listen(int port_number, bool non
 Lerror:
   if (fd != NO_FD)
     close();
+  MachineFatal("Could not bind or listen to port %d (error: %d)", port_number, res);
   return res;
 }