Commit 15f9a93c authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

include the full size of the sent response in the log

parent e9928773
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -519,6 +519,7 @@ static int send_doc(int sock, struct httprequest *req)
  size_t cmdsize=0;
  size_t cmdsize=0;
  FILE *dump;
  FILE *dump;
  int persistant = TRUE;
  int persistant = TRUE;
  size_t responsesize;


  static char weare[256];
  static char weare[256];


@@ -613,6 +614,8 @@ static int send_doc(int sock, struct httprequest *req)
  else
  else
    prevbounce = FALSE;
    prevbounce = FALSE;



  responsesize = count;
  do {
  do {
    written = swrite(sock, buffer, count);
    written = swrite(sock, buffer, count);
    if (written < 0) {
    if (written < 0) {
@@ -628,7 +631,7 @@ static int send_doc(int sock, struct httprequest *req)


  fclose(dump);
  fclose(dump);


  logmsg("Response sent!");
  logmsg("Response sent (%d bytes)!", responsesize);


  if(ptr)
  if(ptr)
    free(ptr);
    free(ptr);