diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-05-30 22:40:52 +0200 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-05-30 22:40:52 +0200 |
commit | b715de1eb6f937b0a05d91842041a54455946061 (patch) | |
tree | 8ff497cf574be954bacc3c8844446cbc740ead43 /https.cpp | |
parent | ed3fcf6ef315fc6fe1519f0c67377267bd95666d (diff) |
Bugfixes: write timeout and output size
Diffstat (limited to 'https.cpp')
-rw-r--r-- | https.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -98,6 +98,7 @@ class session : public std::enable_shared_from_this<session> void handle_request(::Server& server, request_type&& req) { + beast::get_lowest_layer(stream_).expires_after(std::chrono::seconds(300)); // timeout on write by server much longer than read timeout from client auto sp = std::make_shared<response_type>(generate_response(req, server)); res_ = sp; @@ -225,7 +226,7 @@ public: &session::on_read, shared_from_this())); #else - http::async_read(stream_, buffer_, *parser_, + http::async_read(stream_, buffer_, *parser_, boost::asio::bind_executor( strand_, std::bind( |