You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2020/04/09 18:11:26 UTC

[trafficserver] branch 9.0.x updated: Making client session id unique across HTTP/1 and 2 sessions

This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 5f26722  Making client session id unique across HTTP/1 and 2 sessions
5f26722 is described below

commit 5f26722100785860468636280b7a6d53fa52cc04
Author: bneradt <bn...@verizonmedia.com>
AuthorDate: Wed Apr 1 20:08:40 2020 +0000

    Making client session id unique across HTTP/1 and 2 sessions
    
    I noticed that calls to TSHttpSsnIdGet were not unique for sessions
    across HTTP/1 and HTTP/2 sessions: they each counted from 0
    independently. This makes them share the same counter.
    
    (cherry picked from commit e7cd51ef91afced0ed351d430049f64bbed2cc0e)
---
 proxy/ProxySession.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/proxy/ProxySession.h b/proxy/ProxySession.h
index 6280410..e69edda 100644
--- a/proxy/ProxySession.h
+++ b/proxy/ProxySession.h
@@ -194,7 +194,7 @@ private:
 ///////////////////
 // INLINE
 
-static inline int64_t next_cs_id = 0;
+inline int64_t next_cs_id = 0;
 
 inline int64_t
 ProxySession::next_connection_id()