Lines Matching refs:expect_len
328 size_t expect_len; in process_one_client() local
347 ret = read(unixfd, &expect_len, sizeof(expect_len)); in process_one_client()
348 assert(ret == (ssize_t)sizeof(expect_len)); in process_one_client()
350 if (expect_len > sizeof(buf)) in process_one_client()
351 xerror("expect len %zu exceeds buffer size", expect_len); in process_one_client()
360 if (queued > expect_len) in process_one_client()
362 queued, expect_len); in process_one_client()
363 if (queued == expect_len) in process_one_client()
381 assert((size_t)tcp_inq == (expect_len - 1)); in process_one_client()
399 ret = read(unixfd, &expect_len, sizeof(expect_len)); in process_one_client()
400 assert(ret == (ssize_t)sizeof(expect_len)); in process_one_client()
403 if (expect_len <= sizeof(buf)) in process_one_client()
404 xerror("expect len %zu too small\n", expect_len); in process_one_client()
417 if (tcp_inq > expect_len - tot) in process_one_client()
419 tcp_inq, expect_len - tot, (int)expect_len); in process_one_client()
421 assert(tcp_inq <= expect_len - tot); in process_one_client()
422 } while ((size_t)tot < expect_len); in process_one_client()