]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Polish: more debug info from squidclient
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 31 May 2013 09:29:21 +0000 (03:29 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 31 May 2013 09:29:21 +0000 (03:29 -0600)
tools/squidclient.cc

index 1c755870512613b10b59766d62ceace38ba15950..5f06555dcf11b99147f95abd7e12c6f8bc9da6cf 100644 (file)
@@ -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 */