--------------------- PatchSet 6295 Date: 2007/12/15 16:35:19 Author: chtsanti Branch: async-calls Tag: (none) Log: Making comm_read calls to use the new CommCalls interface Members: src/client_side.cc:1.139.4.3->1.139.4.4 Index: squid3/src/client_side.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/client_side.cc,v retrieving revision 1.139.4.3 retrieving revision 1.139.4.4 diff -u -r1.139.4.3 -r1.139.4.4 --- squid3/src/client_side.cc 13 Dec 2007 19:36:05 -0000 1.139.4.3 +++ squid3/src/client_side.cc 15 Dec 2007 16:35:19 -0000 1.139.4.4 @@ -1,6 +1,6 @@ /* - * $Id: client_side.cc,v 1.139.4.3 2007/12/13 19:36:05 rousskov Exp $ + * $Id: client_side.cc,v 1.139.4.4 2007/12/15 16:35:19 chtsanti Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -202,7 +202,11 @@ makeSpaceAvailable(); - comm_read(fd, in.addressToReadInto(), getAvailableBufferLength(), clientReadRequest, this); + // TODO: make clientReadRequest member of ClientSocketContext which is already an AsyncJob + // child class and use asyncCall here. + comm_read(fd, in.addressToReadInto(), getAvailableBufferLength(), + commCbCall(11, 5, "clientReadRequest", + CommIoCbPtrFun(clientReadRequest, this))); }