This is an automated email from the ASF dual-hosted git repository. zwoop pushed a commit to branch 7.1.x in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit 004526bd5a5b02b2b96cd8934c840d40190498ca Author: Susan Hinrichs <shinr...@apache.org> AuthorDate: Sun Aug 27 18:32:19 2017 +0000 Delay creation of transaction until user agent sends request. (cherry picked from commit 896bf81df05492d344754e56c5a51997ee4dec50) --- proxy/http/Http1ClientSession.cc | 2 +- proxy/http/Http1ClientSession.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/proxy/http/Http1ClientSession.cc b/proxy/http/Http1ClientSession.cc index ba7cbf2..2092bd8 100644 --- a/proxy/http/Http1ClientSession.cc +++ b/proxy/http/Http1ClientSession.cc @@ -443,7 +443,7 @@ Http1ClientSession::reenable(VIO *vio) void Http1ClientSession::release(ProxyClientTransaction *trans) { - ink_assert(read_state == HCS_ACTIVE_READER); + ink_assert(read_state == HCS_ACTIVE_READER || read_state == HCS_INIT); // Clean up the write VIO in case of inactivity timeout this->do_io_write(nullptr, 0, nullptr); diff --git a/proxy/http/Http1ClientSession.h b/proxy/http/Http1ClientSession.h index 97d64fa..a2321b4 100644 --- a/proxy/http/Http1ClientSession.h +++ b/proxy/http/Http1ClientSession.h @@ -61,8 +61,8 @@ public: virtual void start() { - // Create a new transaction object and kick it off - this->new_transaction(); + // Troll for data to get a new transaction + this->release(&trans); } void new_connection(NetVConnection *new_vc, MIOBuffer *iobuf, IOBufferReader *reader, bool backdoor); -- To stop receiving notification emails like this one, please contact "commits@trafficserver.apache.org" <commits@trafficserver.apache.org>.