Cleanup of timeout handling: timeouts are no longer reset on partial reads and sends

This commit is contained in:
eidheim 2020-02-04 10:01:49 +01:00
commit 84455ac966
3 changed files with 18 additions and 40 deletions

View file

@ -50,7 +50,7 @@ namespace SimpleWeb {
asio::ssl::context context;
std::shared_ptr<Connection> create_connection() noexcept override {
return std::make_shared<Connection>(handler_runner, config.timeout, *io_service, context);
return std::make_shared<Connection>(handler_runner, *io_service, context);
}
void connect(const std::shared_ptr<Session> &session) override {