You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Specifying timeout for a request appears to silently truncate the response body if it being received when the the timeout expires.
Example:
http://httpbin.org/drip will return 10 bytes over 2 seconds:
$ time curl "http://httpbin.org/drip";echo**********
real 0m2.005s
With a 1 second timeout, curl returns an error:
$ time curl -m 1 "http://httpbin.org/drip";echo
curl: (28) Operation timed out after 1000 milliseconds with 4 out of 10 bytes received
****
real 0m1.008s
This is an attohttpc program that I expected do the same thing:
Specifying
timeout
for a request appears to silently truncate the response body if it being received when the the timeout expires.Example:
http://httpbin.org/drip
will return 10 bytes over 2 seconds:With a 1 second timeout, curl returns an error:
This is an attohttpc program that I expected do the same thing:
But instead of returning an error, the result is successful, and
text
is truncated:The text was updated successfully, but these errors were encountered: