Update of /cvsroot/boost/boost/boost/asio/detail
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv5048
Modified Files:
reactive_socket_service.hpp
Log Message:
Some older UNIX platforms return EPROTO from accept() to indicate that a
connection was lost before being fully established.
Index: reactive_socket_service.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/asio/detail/reactive_socket_service.hpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- reactive_socket_service.hpp 8 May 2007 13:39:04 -0000 1.13
+++ reactive_socket_service.hpp 12 May 2007 10:46:47 -0000 1.14
@@ -1264,6 +1264,14 @@
return ec;
// Fall through to retry operation.
}
+#if defined(EPROTO)
+ else if (ec.value() == EPROTO)
+ {
+ if (impl.flags_ & implementation_type::enable_connection_aborted)
+ return ec;
+ // Fall through to retry operation.
+ }
+#endif // defined(EPROTO)
else
return ec;
@@ -1323,6 +1331,10 @@
if (ec == boost::asio::error::connection_aborted
&& !enable_connection_aborted_)
return false;
+#if defined(EPROTO)
+ if (ec.value() == EPROTO && !enable_connection_aborted_)
+ return false;
+#endif // defined(EPROTO)
// Transfer ownership of the new socket to the peer object.
if (!ec)
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs