This is an automated email from the ASF dual-hosted git repository. shinrich pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push: new 896bf81 Delay creation of transaction until user agent sends request. 896bf81 is described below commit 896bf81df05492d344754e56c5a51997ee4dec50 Author: Susan Hinrichs <shinr...@apache.org> AuthorDate: Sun Aug 27 18:32:19 2017 +0000 Delay creation of transaction until user agent sends request. --- 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 14a9de0..05a6d72 100644 --- a/proxy/http/Http1ClientSession.cc +++ b/proxy/http/Http1ClientSession.cc @@ -451,7 +451,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 829baf6..458e432 100644 --- a/proxy/http/Http1ClientSession.h +++ b/proxy/http/Http1ClientSession.h @@ -62,8 +62,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>'].