From b65ab6e8ca0ba61733e2e2964ba4d4e80fb8317b Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Fri, 31 May 2013 03:29:21 -0600 Subject: [PATCH] Polish: more debug info from squidclient --- tools/squidclient.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/squidclient.cc b/tools/squidclient.cc index 1c75587051..5f06555dcf 100644 --- a/tools/squidclient.cc +++ b/tools/squidclient.cc @@ -628,6 +628,7 @@ main(int argc, char *argv[]) } /* Send the HTTP request */ + fprintf(stderr, "Sending HTTP request ... "); bytesWritten = mywrite(conn, msg, strlen(msg)); if (bytesWritten < 0) { @@ -637,8 +638,10 @@ main(int argc, char *argv[]) fprintf(stderr, "client: ERROR: Cannot send request?: %s\n", msg); exit(1); } + fprintf(stderr, "done.\n"); if (put_file) { + fprintf(stderr, "Sending HTTP request payload ... "); int x; lseek(put_fd, 0, SEEK_SET); while ((x = read(put_fd, buf, sizeof(buf))) > 0) { @@ -653,6 +656,8 @@ main(int argc, char *argv[]) if (x != 0) fprintf(stderr, "client: ERROR: Cannot send file.\n"); + else + fprintf(stderr, "done.\n"); } /* Read the data */ -- 2.47.2