--------------------- PatchSet 6366 Date: 2007/12/18 21:00:15 Author: chtsanti Branch: async-calls Tag: (none) Log: converting comm_write calls to new CommCalls. Members: src/client_side.cc:1.139.4.4->1.139.4.5 Index: squid3/src/client_side.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/client_side.cc,v retrieving revision 1.139.4.4 retrieving revision 1.139.4.5 diff -u -r1.139.4.4 -r1.139.4.5 --- squid3/src/client_side.cc 15 Dec 2007 16:35:19 -0000 1.139.4.4 +++ squid3/src/client_side.cc 18 Dec 2007 21:00:15 -0000 1.139.4.5 @@ -1,6 +1,6 @@ /* - * $Id: client_side.cc,v 1.139.4.4 2007/12/15 16:35:19 chtsanti Exp $ + * $Id: client_side.cc,v 1.139.4.5 2007/12/18 21:00:15 chtsanti Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -812,7 +812,9 @@ if (!multipartRangeRequest()) { size_t length = lengthToSend(bodyData.range()); noteSentBodyBytes (length); - comm_write(fd(), bodyData.data, length, clientWriteBodyComplete, this, NULL); + comm_write(fd(), bodyData.data, length, + commCbCall(33, 5, "clientWriteBodyComplete", + CommIoCbPtrFun(clientWriteBodyComplete, this))); return; } @@ -822,7 +824,9 @@ if (mb.contentSize()) /* write */ - comm_write_mbuf(fd(), &mb, clientWriteComplete, this); + comm_write_mbuf(fd(), &mb, + commCbCall(33, 5, "clientWriteComplete", + CommIoCbPtrFun(clientWriteComplete, this))); else writeComplete(fd(), NULL, 0, COMM_OK); } @@ -1204,7 +1208,10 @@ } /* write */ - comm_write_mbuf(fd(), mb, clientWriteComplete, this); + comm_write_mbuf(fd(), mb, + commCbCall(33, 5, "clientWriteComplete", + CommIoCbPtrFun(clientWriteComplete, this))); + delete mb; }