mirror of
https://github.com/curl/curl.git
synced 2025-03-31 16:00:35 +08:00
test1540: improve reliability
- print that bytes have been received on pausing, but not how many Closes #12069
This commit is contained in:
parent
56d373033d
commit
a383d1372f
@ -31,7 +31,7 @@ HTTP/1.1 200 OK swsclose
|
||||
Transfer-Encoding: chunked
|
||||
Trailer: MyCoolTrailerHeader
|
||||
|
||||
Got 4 bytes but pausing!
|
||||
Got bytes but pausing!
|
||||
datad474
|
||||
MyCoolTrailerHeader: amazingtrailer
|
||||
</datacheck>
|
||||
|
@ -76,7 +76,8 @@ static size_t write_callback(void *ptr, size_t size, size_t nmemb, void *userp)
|
||||
fwrite(ptr, size, nmemb, stdout);
|
||||
return len;
|
||||
}
|
||||
printf("Got %d bytes but pausing!\n", (int)len);
|
||||
if(len)
|
||||
printf("Got bytes but pausing!\n");
|
||||
st->halted = 1;
|
||||
return CURL_WRITEFUNC_PAUSE;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user