summaryrefslogtreecommitdiffhomepage
path: root/http.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-05-30 22:40:52 +0200
committerRoland Reichwein <mail@reichwein.it>2020-05-30 22:40:52 +0200
commitb715de1eb6f937b0a05d91842041a54455946061 (patch)
tree8ff497cf574be954bacc3c8844446cbc740ead43 /http.cpp
parented3fcf6ef315fc6fe1519f0c67377267bd95666d (diff)
Bugfixes: write timeout and output size
Diffstat (limited to 'http.cpp')
-rw-r--r--http.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/http.cpp b/http.cpp
index 6a488ed..1d3edee 100644
--- a/http.cpp
+++ b/http.cpp
@@ -63,6 +63,7 @@ class session : public std::enable_shared_from_this<session>
void handle_request(::Server& server, request_type&& req)
{
+ 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;