eidheim / Simple-Web-Server

A very simple, fast, multithreaded, platform independent HTTP and HTTPS server and client library implemented using C++11 and Boost.Asio. Created to be an easy way to make REST resources available from C++ applications.
MIT License
2.61k stars 751 forks source link

On timeout in client, the error code is operation_aborted instead of the more appropriate asio::error::timed_out #225

Open andreig1978 opened 6 years ago

eidheim commented 6 years ago

The operation_aborted error code is generated by the socket::cancel function.

andreig1978 commented 6 years ago

Yes I know, but from the client's perspective it's a little confusing. I'll try to address it and submit a pull request.