From 9ee7a014c90772a891a89ef02b0890b867e9ddbc Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Tue, 12 Aug 2008 18:32:55 +0000 Subject: Handle short reads --- tests/libtest/lib556.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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)); } } -- cgit v1.2.3