comparison common-channel.c @ 270:50da8d4b5acd

merge of c9dc9c734d4724866a86987356e6aedeed1c93dd and fe38e5c38c2e7d5a4bb76aee511d345f1c2d5ac2
author Matt Johnston <matt@ucc.asn.au>
date Wed, 25 Jan 2006 17:14:32 +0000
parents 92b9b182c615
children e109fb08b8ee
comparison
equal deleted inserted replaced
268:475a818dd6e7 270:50da8d4b5acd
375 } 375 }
376 376
377 cbuf_incrread(cbuf, len); 377 cbuf_incrread(cbuf, len);
378 channel->recvdonelen += len; 378 channel->recvdonelen += len;
379 379
380 if (fd == channel->writefd && len == maxlen && channel->recveof) { 380 if (fd == channel->writefd && cbuf_getused(cbuf) == 0 && channel->recveof) {
381 /* Check if we're closing up */ 381 /* Check if we're closing up */
382 closewritefd(channel); 382 closewritefd(channel);
383 TRACE(("leave writechannel: recveof set")) 383 TRACE(("leave writechannel: recveof set"))
384 return; 384 return;
385 } 385 }