Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve Tunnel Server RESPONSE dumps (#1975)
Level-2 "Tunnel Server RESPONSE:..." debugs() incorrectly assumed that its readBuf parameter contained hdr_sz header bytes. In reality, by the time code reached that debugs(), readBuf no longer had any header bytes (and often had no bytes at all). Besides broken header dumps, this bug could lead to problems that Valgrind reports as "Conditional jump or move depends on uninitialised value" in DebugChannel::writeToStream(). This fix mimics HttpStateData::processReplyHeader() reporting code, including its known problems. Future changes should address those problems and reduce code duplication across at least ten functions containing similar "decorated" level-2 message dumps.
- Loading branch information