]> git.ipfire.org Git - thirdparty/squid.git/commit - src/ipc/SharedListen.cc
Author: Christos Tsantilas <chtsanti@users.sourceforge.net>, Amos Jeffries <squid3...
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Wed, 20 Jul 2011 12:38:39 +0000 (15:38 +0300)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Wed, 20 Jul 2011 12:38:39 +0000 (15:38 +0300)
commitb72fb55da41fb8d7fe25e15804a3651210313a75
tree517d625c29abb5cbdace1c8277a41e8ab151f7e8
parent63f03f790981f8411a7a5ffd6c91ff3c5f988ea8
Author: Christos Tsantilas <chtsanti@users.sourceforge.net>, Amos Jeffries <squid3@treenet.co.nz>
Bug 3264: Segmentation Fault in src/ipc/Strand.cc(54) receive: 3

The SharedListenResponse because copied using memcpy function (TypedMsgHdr.cc
file, 154 line, Ipc::TypedMsgHdr::getRaw method) can not have complex class
members like the SharedListenResponse::conn which is a RefCounted object.

This patch
 - Remove the SharedListenResponse::conn member and replaced with a
   single SharedListenResponse::fd (integer filedescriptor) member.

 - Does not create a new Comm::Connection object for listening sockets
   inside IPC code , but use the Comm:Connection object created while
   initializing the listening socket and passed to the Ipc::StartListening
   method.
src/ipc/Coordinator.cc
src/ipc/SharedListen.cc
src/ipc/SharedListen.h
src/ipc/StartListening.cc