From e4c59dd164aec08dcae68b6badc7d1a227e9e229 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 10 Dec 2014 01:21:12 +0900 Subject: [PATCH] nghttpd: Fix next_session_id_ is not incremented --- src/HttpServer.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/HttpServer.cc b/src/HttpServer.cc index c435c296..33abd0b8 100644 --- a/src/HttpServer.cc +++ b/src/HttpServer.cc @@ -245,6 +245,8 @@ public: auto session_id = next_session_id_; if (next_session_id_ == std::numeric_limits::max()) { next_session_id_ = 1; + } else { + ++next_session_id_; } return session_id; }