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.62k stars 758 forks source link

httpclient support connect timeout and receive timeout? #101

Closed lotusdeng closed 7 years ago

eidheim commented 7 years ago

I'll do this in a few days hopefully.

eidheim commented 7 years ago

I at least partially fixed this feature request. I could maybe add timeout_read and timeout_write as well, but decided against it at least for now due to the high number of timeout variables. Are there cases where you would want to have a different timeout for read and write operations?