From e75e4a0217096ebd7f425278403ab687911b0bb6 Mon Sep 17 00:00:00 2001 From: corvid Date: Thu, 17 Jul 2014 03:24:01 +0000 Subject: http persistent connections initial patch --- src/IO/IO.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/IO/IO.c') diff --git a/src/IO/IO.c b/src/IO/IO.c index a0a8bba5..43a3ff3a 100644 --- a/src/IO/IO.c +++ b/src/IO/IO.c @@ -350,6 +350,7 @@ void a_IO_ccc(int Op, int Branch, int Dir, ChainLink *Info, switch (Op) { case OpStart: io = IO_new(IOWrite); + io->Info = Info; Info->LocalKey = io; break; case OpSend: @@ -406,9 +407,10 @@ void a_IO_ccc(int Op, int Branch, int Dir, ChainLink *Info, IO_submit(io); } break; + case OpEnd: case OpAbort: io = Info->LocalKey; - IO_close_fd(io, IO_StopRdWr); + IO_close_fd(io, Op == OpEnd ? IO_StopRd : IO_StopRdWr); IO_free(io); dFree(Info); break; -- cgit v1.2.3