comparison common-channel.c @ 278:e109fb08b8ee

merge of 4cbdd6e0a0d8c061075b9ed7609a06c4547f67d3 and 5d396842815593611f0d61762440145d1fc74d5a
author Matt Johnston <matt@ucc.asn.au>
date Wed, 08 Mar 2006 12:53:09 +0000
parents 3cea9d789cca 92b9b182c615
children baea1d43e7eb
comparison
equal deleted inserted replaced
276:3cea9d789cca 278:e109fb08b8ee
374 } 374 }
375 375
376 cbuf_incrread(cbuf, len); 376 cbuf_incrread(cbuf, len);
377 channel->recvdonelen += len; 377 channel->recvdonelen += len;
378 378
379 if (fd == channel->writefd && len == maxlen && channel->recveof) { 379 if (fd == channel->writefd && cbuf_getused(cbuf) == 0 && channel->recveof) {
380 /* Check if we're closing up */ 380 /* Check if we're closing up */
381 closewritefd(channel); 381 closewritefd(channel);
382 TRACE(("leave writechannel: recveof set")) 382 TRACE(("leave writechannel: recveof set"))
383 return; 383 return;
384 } 384 }