Update of /cvsroot/boost/boost/libs/asio/example/http/client
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv15893/example/http/client
Modified Files:
sync_client.cpp
Log Message:
Ensure that what gets thrown is the system_error exception.
Index: sync_client.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/asio/example/http/client/sync_client.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- sync_client.cpp 8 Nov 2006 05:32:13 -0000 1.4
+++ sync_client.cpp 9 Nov 2006 11:21:41 -0000 1.5
@@ -45,7 +45,7 @@
socket.connect(*endpoint_iterator++, error);
}
if (error)
- throw error;
+ throw boost::system::system_error(error);
// Form the request. We specify the "Connection: close" header so that the
// server will close the socket after transmitting the response. This will
@@ -101,7 +101,7 @@
boost::asio::transfer_at_least(1), error))
std::cout << &response;
if (error != boost::asio::error::eof)
- throw error;
+ throw boost::system::system_error(error);
}
catch (std::exception& e)
{
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs