Lines Matching refs:got
878 ssize_t got = 0; in get_request() local
895 got = sread(sock, reqbuf + req->offset, REQBUFSIZ - req->offset); in get_request()
896 if(got > 0) { in get_request()
897 req->offset += got; in get_request()
898 logmsg("Got %zu bytes from client", got); in get_request()
901 if((got == -1) && ((EAGAIN == errno) || (EWOULDBLOCK == errno))) { in get_request()
910 got = 0; in get_request()
918 got = 1; in get_request()
920 } while(got > 0); in get_request()
946 got = sread(sock, reqbuf + req->offset, req->cl); in get_request()
948 got = sread(sock, reqbuf + req->offset, REQBUFSIZ-1 - req->offset); in get_request()
952 if(got == 0) { in get_request()
956 else if(got < 0) { in get_request()
972 logmsg("Read %zd bytes", got); in get_request()
974 req->offset += (size_t)got; in get_request()
982 if(overflow || (req->offset == REQBUFSIZ-1 && got > 0)) { in get_request()