From: Dan Fandrich Date: Tue, 12 Aug 2008 18:32:55 +0000 (+0000) Subject: Handle short reads X-Git-Tag: cares-1_5_3~156 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9ee7a014c90772a891a89ef02b0890b867e9ddbc;p=curl Handle short reads --- diff --git a/tests/libtest/lib556.c b/tests/libtest/lib556.c index 22583a236..85fd65699 100644 --- a/tests/libtest/lib556.c +++ b/tests/libtest/lib556.c @@ -54,7 +54,7 @@ int test(char *URL) total += iolen; - } while((res == CURLE_AGAIN) && (total < 129)); + } while(((res == CURLE_OK) || (res == CURLE_AGAIN)) && (total < 129)); } }