From 5746260566ba2acb9f8f34c0dfaf67fb61d41f77 Mon Sep 17 00:00:00 2001 From: Alex Rousskov Date: Fri, 23 Sep 2016 09:08:49 -0600 Subject: [PATCH] Log TCP client port for error:transaction-end-before-headers and such. --- src/format/Format.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/format/Format.cc b/src/format/Format.cc index 72dbf6a383..bce95311d8 100644 --- a/src/format/Format.cc +++ b/src/format/Format.cc @@ -410,6 +410,9 @@ Format::Format::assemble(MemBuf &mb, const AccessLogEntry::Pointer &al, int logS if (al->request) { outint = al->request->client_addr.port(); doint = 1; + } else if (al->tcpClient) { + outint = al->tcpClient->remote.port(); + doint = 1; } break; -- 2.47.2