|
Boost-Commit : |
From: chris_at_[hidden]
Date: 2007-09-01 02:13:23
Author: chris_kohlhoff
Date: 2007-09-01 02:13:02 EDT (Sat, 01 Sep 2007)
New Revision: 39093
URL: http://svn.boost.org/trac/boost/changeset/39093
Log:
Ignore errors from shutdown().
Text files modified:
trunk/libs/asio/example/http/server/connection.cpp | 3 ++-
trunk/libs/asio/example/http/server2/connection.cpp | 3 ++-
trunk/libs/asio/example/http/server3/connection.cpp | 3 ++-
3 files changed, 6 insertions(+), 3 deletions(-)
Modified: trunk/libs/asio/example/http/server/connection.cpp
==============================================================================
--- trunk/libs/asio/example/http/server/connection.cpp (original)
+++ trunk/libs/asio/example/http/server/connection.cpp 2007-09-01 02:13:02 EDT (Sat, 01 Sep 2007)
@@ -85,7 +85,8 @@
if (!e)
{
// Initiate graceful connection closure.
- socket_.shutdown(boost::asio::ip::tcp::socket::shutdown_both);
+ boost::system::error_code ignored_ec;
+ socket_.shutdown(boost::asio::ip::tcp::socket::shutdown_both, ignored_ec);
}
if (e != boost::asio::error::operation_aborted)
Modified: trunk/libs/asio/example/http/server2/connection.cpp
==============================================================================
--- trunk/libs/asio/example/http/server2/connection.cpp (original)
+++ trunk/libs/asio/example/http/server2/connection.cpp 2007-09-01 02:13:02 EDT (Sat, 01 Sep 2007)
@@ -79,7 +79,8 @@
if (!e)
{
// Initiate graceful connection closure.
- socket_.shutdown(boost::asio::ip::tcp::socket::shutdown_both);
+ boost::system::error_code ignored_ec;
+ socket_.shutdown(boost::asio::ip::tcp::socket::shutdown_both, ignored_ec);
}
// No new asynchronous operations are started. This means that all shared_ptr
Modified: trunk/libs/asio/example/http/server3/connection.cpp
==============================================================================
--- trunk/libs/asio/example/http/server3/connection.cpp (original)
+++ trunk/libs/asio/example/http/server3/connection.cpp 2007-09-01 02:13:02 EDT (Sat, 01 Sep 2007)
@@ -84,7 +84,8 @@
if (!e)
{
// Initiate graceful connection closure.
- socket_.shutdown(boost::asio::ip::tcp::socket::shutdown_both);
+ boost::system::error_code ignored_ec;
+ socket_.shutdown(boost::asio::ip::tcp::socket::shutdown_both, ignored_ec);
}
// No new asynchronous operations are started. This means that all shared_ptr
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk