From 358808f9cac094e1d02b467ea61bd2ea915ed5e6 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 31 May 2020 10:17:11 +0200 Subject: Compile fix for debian 10 --- http.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'http.cpp') diff --git a/http.cpp b/http.cpp index 1d3edee..1ea960d 100644 --- a/http.cpp +++ b/http.cpp @@ -63,7 +63,11 @@ class session : public std::enable_shared_from_this void handle_request(::Server& server, request_type&& req) { +#ifdef BOOST_LATEST stream_.expires_after(std::chrono::seconds(300)); // timeout on write by server much longer than read timeout from client +#else + // socket_.expires_after(std::chrono::seconds(300)); // not supported by old boost +#endif auto sp = std::make_shared(generate_response(req, server)); res_ = sp; -- cgit v1.2.3