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

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


The following commit(s) were added to refs/heads/9.1.x by this push:
     new 62f549b  Set accept_options of Http1Transaction in 
Http1ClientSession::new_connection() (#7894)
62f549b is described below

commit 62f549b33bf984944d75e9c0121347de5c5d3fc5
Author: Masaori Koshiba <[email protected]>
AuthorDate: Wed Jun 2 07:33:09 2021 +0900

    Set accept_options of Http1Transaction in 
Http1ClientSession::new_connection() (#7894)
    
    (cherry picked from commit 01d2150ef43650fec904c9ddd0d85978cd0a7390)
---
 proxy/http/Http1ClientSession.cc | 2 ++
 proxy/http/HttpSessionAccept.cc  | 2 --
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/proxy/http/Http1ClientSession.cc b/proxy/http/Http1ClientSession.cc
index 300c112..ca552ab 100644
--- a/proxy/http/Http1ClientSession.cc
+++ b/proxy/http/Http1ClientSession.cc
@@ -186,7 +186,9 @@ Http1ClientSession::new_connection(NetVConnection *new_vc, 
MIOBuffer *iobuf, IOB
 
   read_buffer = iobuf ? iobuf : new_MIOBuffer(HTTP_HEADER_BUFFER_SIZE_INDEX);
   _reader     = reader ? reader : read_buffer->alloc_reader();
+
   trans.set_reader(_reader);
+  trans.upstream_outbound_options = *accept_options;
 
   _handle_if_ssl(new_vc);
 
diff --git a/proxy/http/HttpSessionAccept.cc b/proxy/http/HttpSessionAccept.cc
index ea9d075..29416da 100644
--- a/proxy/http/HttpSessionAccept.cc
+++ b/proxy/http/HttpSessionAccept.cc
@@ -58,8 +58,6 @@ HttpSessionAccept::accept(NetVConnection *netvc, MIOBuffer 
*iobuf, IOBufferReade
   new_session->setThreadAffinity(this_ethread());
   new_session->new_connection(netvc, iobuf, reader);
 
-  new_session->trans.upstream_outbound_options = *new_session->accept_options;
-
   return true;
 }
 

Reply via email to