Skip to content

Commit 0137caf

Browse files
author
Alan M. Carroll
committed
Merge pull request apache#50 from Edge/ts-3266
TS-3266: Add logic to move control to the session pool. Reviewed by solidwallofcode
2 parents 4a947c2 + 833d8e0 commit 0137caf

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

iocore/net/UnixNetVConnection.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,9 +632,11 @@ UnixNetVConnection::do_io_close(int alerrno /* = -1 */)
632632
read.vio.buffer.clear();
633633
read.vio.nbytes = 0;
634634
read.vio.op = VIO::NONE;
635+
read.vio._cont = NULL;
635636
write.vio.buffer.clear();
636637
write.vio.nbytes = 0;
637638
write.vio.op = VIO::NONE;
639+
write.vio._cont = NULL;
638640

639641
EThread *t = this_ethread();
640642
bool close_inline = !recursion && nh->mutex->thread_holding == t;

proxy/http/HttpSM.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
* IMPORTANT NOTE: enable/disable LAZY_BUF_ALLOC in HttpServerSession.h
5656
* as well.
5757
*/
58-
#define LAZY_BUF_ALLOC
58+
//#define LAZY_BUF_ALLOC
5959

6060
#define HTTP_API_CONTINUE (INK_API_EVENT_EVENTS_START + 0)
6161
#define HTTP_API_ERROR (INK_API_EVENT_EVENTS_START + 1)

proxy/http/HttpServerSession.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@ HttpServerSession::release()
168168
return;
169169
}
170170

171+
// Drop the read on the VC before we transfer control to the session pool
172+
// TS-3266
173+
this->do_io_read(NULL, 0, NULL);
174+
171175
HSMresult_t r = httpSessionManager.release_session(this);
172176

173177

proxy/http/HttpServerSession.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
*
4343
* IMPORTANT NOTE: enable/disable LAZY_BUF_ALLOC in HttpSM.h as well.
4444
*/
45-
#define LAZY_BUF_ALLOC
45+
//#define LAZY_BUF_ALLOC
4646

4747
#include "P_Net.h"
4848

0 commit comments

Comments
 (0)