You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ma...@apache.org on 2019/02/05 05:38:14 UTC

[trafficserver] branch quic-latest updated: Remove references to HTTP/3 from QPACK

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

masaori pushed a commit to branch quic-latest
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/quic-latest by this push:
     new 982c9ba  Remove references to HTTP/3 from QPACK
982c9ba is described below

commit 982c9baf4b7c9ca86735fc0b28581039bc3f154b
Author: Masaori Koshiba <ma...@apache.org>
AuthorDate: Tue Feb 5 14:37:35 2019 +0900

    Remove references to HTTP/3 from QPACK
---
 proxy/http3/Http3App.cc           | 1 +
 proxy/http3/Http3ClientSession.cc | 8 ++++++--
 proxy/http3/QPACK.h               | 6 +-----
 3 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/proxy/http3/Http3App.cc b/proxy/http3/Http3App.cc
index e4bde93..e30adf4 100644
--- a/proxy/http3/Http3App.cc
+++ b/proxy/http3/Http3App.cc
@@ -26,6 +26,7 @@
 #include "P_Net.h"
 #include "P_VConnection.h"
 
+#include "Http3.h"
 #include "Http3Config.h"
 #include "Http3DebugNames.h"
 #include "Http3ClientSession.h"
diff --git a/proxy/http3/Http3ClientSession.cc b/proxy/http3/Http3ClientSession.cc
index 0b8e294..2038e78 100644
--- a/proxy/http3/Http3ClientSession.cc
+++ b/proxy/http3/Http3ClientSession.cc
@@ -23,10 +23,14 @@
 
 #include "Http3ClientSession.h"
 
+#include "Http3.h"
+
 Http3ClientSession::Http3ClientSession(NetVConnection *vc) : _client_vc(vc)
 {
-  this->_local_qpack  = new QPACK(static_cast<QUICNetVConnection *>(vc));
-  this->_remote_qpack = new QPACK(static_cast<QUICNetVConnection *>(vc));
+  this->_local_qpack  = new QPACK(static_cast<QUICNetVConnection *>(vc), HTTP3_DEFAULT_MAX_HEADER_LIST_SIZE,
+                                 HTTP3_DEFAULT_HEADER_TABLE_SIZE, HTTP3_DEFAULT_QPACK_BLOCKED_STREAMS);
+  this->_remote_qpack = new QPACK(static_cast<QUICNetVConnection *>(vc), HTTP3_DEFAULT_MAX_HEADER_LIST_SIZE,
+                                  HTTP3_DEFAULT_HEADER_TABLE_SIZE, HTTP3_DEFAULT_QPACK_BLOCKED_STREAMS);
 }
 
 Http3ClientSession::~Http3ClientSession()
diff --git a/proxy/http3/QPACK.h b/proxy/http3/QPACK.h
index 54c3c2b..85bd710 100644
--- a/proxy/http3/QPACK.h
+++ b/proxy/http3/QPACK.h
@@ -29,8 +29,6 @@
 #include "MIME.h"
 #include "QUICApplication.h"
 
-#include "Http3.h"
-
 class HTTPHdr;
 
 enum {
@@ -41,9 +39,7 @@ enum {
 class QPACK : public QUICApplication
 {
 public:
-  QPACK(QUICConnection *qc, uint32_t max_header_list_size = HTTP3_DEFAULT_MAX_HEADER_LIST_SIZE,
-        uint16_t max_table_size       = HTTP3_DEFAULT_HEADER_TABLE_SIZE,
-        uint16_t max_blocking_streams = HTTP3_DEFAULT_QPACK_BLOCKED_STREAMS);
+  QPACK(QUICConnection *qc, uint32_t max_header_list_size, uint16_t max_table_size, uint16_t max_blocking_streams);
   virtual ~QPACK();
 
   int event_handler(int event, Event *data);