Loading tests/server/sws.c +8 −17 Original line number Diff line number Diff line Loading @@ -952,19 +952,10 @@ static int get_request(curl_socket_t sock, struct httprequest *req) ssize_t got = 0; int overflow = 0; char *pipereq = NULL; size_t pipereq_length = 0; if(req->offset >= REQBUFSIZ-1) { /* buffer is already full; do nothing */ overflow = 1; } else { if(pipereq_length && pipereq) { memmove(reqbuf, pipereq, pipereq_length); got = curlx_uztosz(pipereq_length); pipereq_length = 0; } else { if(req->skip) /* we are instructed to not read the entire thing, so we make sure to Loading @@ -973,7 +964,7 @@ static int get_request(curl_socket_t sock, struct httprequest *req) got = sread(sock, reqbuf + req->offset, req->cl); else got = sread(sock, reqbuf + req->offset, REQBUFSIZ-1 - req->offset); } if(got_exit_signal) return -1; if(got == 0) { Loading Loading
tests/server/sws.c +8 −17 Original line number Diff line number Diff line Loading @@ -952,19 +952,10 @@ static int get_request(curl_socket_t sock, struct httprequest *req) ssize_t got = 0; int overflow = 0; char *pipereq = NULL; size_t pipereq_length = 0; if(req->offset >= REQBUFSIZ-1) { /* buffer is already full; do nothing */ overflow = 1; } else { if(pipereq_length && pipereq) { memmove(reqbuf, pipereq, pipereq_length); got = curlx_uztosz(pipereq_length); pipereq_length = 0; } else { if(req->skip) /* we are instructed to not read the entire thing, so we make sure to Loading @@ -973,7 +964,7 @@ static int get_request(curl_socket_t sock, struct httprequest *req) got = sread(sock, reqbuf + req->offset, req->cl); else got = sread(sock, reqbuf + req->offset, REQBUFSIZ-1 - req->offset); } if(got_exit_signal) return -1; if(got == 0) { Loading