summaryrefslogtreecommitdiff
path: root/contrib/testclient.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/testclient.c')
-rw-r--r--contrib/testclient.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/contrib/testclient.c b/contrib/testclient.c
index 2c5324b..bc93336 100644
--- a/contrib/testclient.c
+++ b/contrib/testclient.c
@@ -164,7 +164,7 @@ int main(int argc, char* argv[])
int nbread = recv(c, buf, sizeof(buf), 0);
if(nbread <= 0) {
if(!nbread) {
- fprintf(stderr, "connection closed\n");
+ fprintf(stderr, "connection closed ... finished\n");
return 0;
} else if (errno != EAGAIN && errno != EWOULDBLOCK && errno != EINTR) {
perror("recv()");
@@ -174,12 +174,7 @@ int main(int argc, char* argv[])
}
rtot += nbread;
- printf("%d bytes received, total = %d", nbread, rtot);
- if(rtot >= 1234567) {
- printf(" .. finished\n");
- return 0;
- }
- printf("\n");
+ printf("%d bytes received, total = %d\n", nbread, rtot);
}
break;
}