Browse files

bug20446. Fix log reporting of content-length with keep-alive streams.

If multiple requests are sent through a socket when using
keep-alive, log entries for each response report the
total bytes written out on the stream rather than
the actual bytes sent for just the response indicated in
the log entry.

Are there user visible changes in this commit?  no

Tests run:  none

Change-Id: I068591552132854653cdae4604b8b2c1d876d978
  • Loading branch information...
Mikel Bancroft
Mikel Bancroft committed Sep 1, 2011
1 parent 882780e commit 10be4096c8fb3ff2a293bee91dcde6f1249574f7
Showing with 1 addition and 0 deletions.
  1. +1 −0
@@ -1542,6 +1542,7 @@ by keyword symbols and not by strings"
(debug-format :info "request over, keep socket alive~%")
(force-output-noblock sock)
(setf (car chars-seen) nil) ; for next use
(excl::socket-bytes-written (request-socket req) 0)
else (return))))))
;; do it in two stages since each one could error and both have
;; to be attempted

0 comments on commit 10be409

Please sign in to comment.