--------------------- PatchSet 4887 Date: 2007/06/26 14:36:15 Author: adri Branch: squid3_adri Tag: (none) Log: Just make sure stuff is setup right before writev(). Members: src/comm.cc:1.74.6.4->1.74.6.5 Index: squid3/src/comm.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/comm.cc,v retrieving revision 1.74.6.4 retrieving revision 1.74.6.5 diff -u -r1.74.6.4 -r1.74.6.5 --- squid3/src/comm.cc 26 Jun 2007 09:34:34 -0000 1.74.6.4 +++ squid3/src/comm.cc 26 Jun 2007 14:36:15 -0000 1.74.6.5 @@ -1,6 +1,6 @@ /* - * $Id: comm.cc,v 1.74.6.4 2007/06/26 09:34:34 adri Exp $ + * $Id: comm.cc,v 1.74.6.5 2007/06/26 14:36:15 adri Exp $ * * DEBUG: section 5 Socket Functions * AUTHOR: Harvest Derived @@ -2053,6 +2053,8 @@ commio_set_callback(fd, IOCB_WRITE, COMMIO_FD_WRITECB(fd), handler, handler_data, NULL, NULL, size); COMMIO_FD_WRITECB(fd)->wv.iov = iov; COMMIO_FD_WRITECB(fd)->wv.iovcnt = iovcnt; + COMMIO_FD_WRITECB(fd)->offset = 0; + COMMIO_FD_WRITECB(fd)->size = size; commSetSelect(fd, COMM_SELECT_WRITE, commHandleWriteV, COMMIO_FD_WRITECB(fd), 0); }