httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Houser, Rick" <>
Subject RE: number of bytes/packets sent/received
Date Thu, 09 Oct 2008 13:34:02 GMT
Disclaimer: I'm fairly new to Apache internals.

Unless Apache has some really strange hooks into TCP, I don't think
packet counting should be possible.  TCP is a transport layer protocol,
and is thus up to the OS.  For example, depending on the physical
network connection in use and any tunnels, etc., the MTU size can vary,
which will change your packet counts for the same Apache output, etc.
There are specialized tools like tcpdump that can capture that
information, but I think you will be limited to the contents of the TCP
stream in any Apache module.

Rick Houser
Auto-Owners Insurance
Systems Support

-----Original Message-----
From: Andrej van der Zee [] 
Sent: Thursday, October 09, 2008 8:41 AM
Subject: number of bytes/packets sent/received


I was wondering what would be the right way to get the number of bytes /
packets that are sent / received in an Apache module for httpd-2.1 and
higher (including the HTTP headers).


View raw message