trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject svn commit: r959700 - /trafficserver/traffic/trunk/iocore/net/Connection.cc
Date Thu, 01 Jul 2010 15:46:29 GMT
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;
 }



Mime
View raw message