Lines Matching refs:rbytes
393 if (c->rbuf != NULL && c->rbytes == 0 && !IS_UDP(c->transport)) { in rbuf_release()
431 memcpy(tmp, c->rcurr, c->rbytes); in rbuf_switch_to_malloc()
729 c->rbytes = 0; in conn_new()
907 c->rbytes = 0; in conn_close()
1436 if (c->rbytes > 0) { in reset_cmd_handler()
2382 assert(c->rbytes > 0);
2404 assert(c->rbytes > 0);
2445 c->rbytes = res;
2471 if (c->rbytes > 0) /* otherwise there's nothing to copy */
2472 memmove(c->rbuf, c->rcurr, c->rbytes);
2478 if (c->rbytes >= c->rsize && c->rbuf_malloced) {
2491 c->rbytes = 0; /* ignore what we read */
2500 int avail = c->rsize - c->rbytes;
2501 res = c->read(c, c->rbuf + c->rbytes, avail);
2507 c->rbytes += res;
2943 if (c->rbytes > 0) {
2945 int tocopy = c->rbytes > c->rlbytes ? c->rlbytes : c->rbytes;
2953 c->rbytes -= tocopy;
3155 if (c->rbytes > 0) {
3190 if (c->rbytes > 0) {
3191 int tocopy = c->rbytes > c->rlbytes ? c->rlbytes : c->rbytes;
3196 c->rbytes -= tocopy;
3270 if (c->rbytes > 0) {
3271 int tocopy = c->rbytes > c->sbytes ? c->sbytes : c->rbytes;
3274 c->rbytes -= tocopy;