Skip to content

Commit 01d2150

Browse files
authored
Set accept_options of Http1Transaction in Http1ClientSession::new_connection() (#7894)
1 parent 0f641cc commit 01d2150

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

proxy/http/Http1ClientSession.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,9 @@ Http1ClientSession::new_connection(NetVConnection *new_vc, MIOBuffer *iobuf, IOB
188188

189189
read_buffer = iobuf ? iobuf : new_MIOBuffer(HTTP_HEADER_BUFFER_SIZE_INDEX);
190190
_reader = reader ? reader : read_buffer->alloc_reader();
191+
191192
trans.set_reader(_reader);
193+
trans.upstream_outbound_options = *accept_options;
192194

193195
_handle_if_ssl(new_vc);
194196

proxy/http/HttpSessionAccept.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ HttpSessionAccept::accept(NetVConnection *netvc, MIOBuffer *iobuf, IOBufferReade
5858
new_session->setThreadAffinity(this_ethread());
5959
new_session->new_connection(netvc, iobuf, reader);
6060

61-
new_session->trans.upstream_outbound_options = *new_session->accept_options;
62-
6361
return true;
6462
}
6563

0 commit comments

Comments
 (0)