Hello folks, What's the recommended way to handle HTTP timeouts with cpp-netlib? Specifically I want to be able to set a timeout (to say, 300ms) and then have the library indicate (probably throw an exception) when the request takes longer than the timeout.
I can see that there's a connection_timeout (network/protocol/http/errors.hpp) exception defined but it appears to be unused. Now I could start a thread, timed_join it etc but that's pretty heavyweight and ugly. We could use a deadline_timer but, externally, we don't have access to the io_service (so we'd need to push the timeout handline into the library). In fact this solution is discussed in a boost forum thread started by our own Dean: http://lists.boost.org/Archives/boost/2007/04/120290.php Looks remarkably similar to what we require! :) So.....has anyone done this before? Shall I roll up my sleeves and start coding a solution into cpp-netlib or has someone already begun? Thanks, Matt ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Cpp-netlib-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cpp-netlib-devel
