nghttpd: Fix next_session_id_ is not incremented

This commit is contained in:
Tatsuhiro Tsujikawa 2014-12-10 01:21:12 +09:00
parent f705b2aec4
commit e4c59dd164
1 changed files with 2 additions and 0 deletions

View File

@ -245,6 +245,8 @@ public:
auto session_id = next_session_id_; auto session_id = next_session_id_;
if (next_session_id_ == std::numeric_limits<int64_t>::max()) { if (next_session_id_ == std::numeric_limits<int64_t>::max()) {
next_session_id_ = 1; next_session_id_ = 1;
} else {
++next_session_id_;
} }
return session_id; return session_id;
} }