Re: number of bytes/packets sent/received

2008-10-09 Thread Sorin Manolache
On Thu, Oct 9, 2008 at 15:54, Andrej van der Zee [EMAIL PROTECTED] wrote: Hi, No, the Content-Length doesn't include the size of the headers. Yes of course, but you could add the length of all r-headers_in. It's not very reliable. In headers_out you have things like key and value, while

Re: Logging authentication requests

2008-10-09 Thread Dave Ingram
To clarify: Is it currently possible to log authentication requests (ideally both success and failure, individually)? If not, is it possible? Meant: is it currently possible to do this with Apache 2.2 (perhaps using an existing module)? If not, is it even theoretically possible? Dave

Re: number of bytes/packets sent/received

2008-10-09 Thread Sorin Manolache
On Thu, Oct 9, 2008 at 15:44, Andrej van der Zee [EMAIL PROTECTED] wrote: Thanks for your reply! Giving it a second thought, the problem looks complicated. Such filter-based counters would count the traffic of _one_ apache process. When you increment the counter, you have to protect it from

RE: Logging authentication requests

2008-10-09 Thread Houser, Rick
Given what I learned writing my module, that would certainly work. I think you'd be hooking check_user_id with the very first call that happens in that phase. That said, I don't know if there might be a better way to handle this... Thanks, Rick Houser Auto-Owners Insurance Systems Support

APR_DECLARE_OPTIONAL_FN and APR_RETRIEVE_OPTIONAL_FN

2008-10-09 Thread Andrej van der Zee
Hi, I was wondering what the purpose is of the macros APR_DECLARE_OPTIONAL_FN and APR_RETRIEVE_OPTIONAL_FN. For example, in mod_authn_dbd APR_RETRIEVE_OPTIONAL_FN is used to get a hold on the functions ap_dbd_acquire and ap_dbd_prepare declared in in mod_dbd with APR_DECLARE_OPTIONAL_FN. I could

Re: APR_DECLARE_OPTIONAL_FN and APR_RETRIEVE_OPTIONAL_FN

2008-10-09 Thread Andrej van der Zee
Hi, Without them, it became impossible to build plugable frameworks without linking one module to another. Yes of course, that would be necessary if you compile your module outside the httpd source tree with apxs I guess. Thanks a lot, Andrej

Equivalents from Apache-1.3 to Apache2.2

2008-10-09 Thread Hracek, Petr
Hello *, I'm trying to build my old module written under Apache-1.3.X under Apache-2.2.X. Problem is that during the build more errors occurs because of missing function ap_ctx_get and ap_global_ctx. 1) Do you know if the function are replaced somewho in Apache-2.2.X? 2) In the header file of

Re: proxy_ajp connect timeout fix.

2008-10-09 Thread Ruediger Pluem
On 10/08/2008 10:55 PM, Matt Stevenson wrote: Hi, I've used mod_jk (1/2) for years. I've always had an issue when a backend server goes down, not tomcat/jboss stopped but dead. Recently some people I work with have been using mod_proxy and mod_proxy_ajp. This seems to have the same

Re: SNI in 2.2.x (Re: Time for 2.2.10?)

2008-10-09 Thread Eric Covener
On Thu, Oct 9, 2008 at 5:59 AM, Ian G [EMAIL PROTECTED] wrote: As we all know, this will not be in 2.2.10... Please recall that things must be in -trunk before being viable for backport to 2.2.x. It's impossible to even express how disappointing this is ;( There are only two changes in TLS

Re: load balancer workers

2008-10-09 Thread Ruediger Pluem
On 10/08/2008 11:21 PM, Vinicius Petrucci wrote: Hi, ok. but if I cannot change the assignment of workers to balancer during runtime, how do I duplicate the workers at startup? where should I write the code for duplication? I've tried using the httpd.conf, e.g., Proxy

Re: number of bytes/packets sent/received

2008-10-09 Thread Sorin Manolache
On Thu, Oct 9, 2008 at 14:40, Andrej van der Zee [EMAIL PROTECTED] wrote: Hi, 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). Check server/core.c and

Re: SNI in 2.2.x (Re: Time for 2.2.10?)

2008-10-09 Thread Ian G
As we all know, this will not be in 2.2.10... Please recall that things must be in -trunk before being viable for backport to 2.2.x. It's impossible to even express how disappointing this is ;( There are only two changes in TLS on the server side that have been identified to have any effect

Re: number of bytes/packets sent/received

2008-10-09 Thread Sorin Manolache
On Thu, Oct 9, 2008 at 15:11, Sorin Manolache [EMAIL PROTECTED] wrote: On Thu, Oct 9, 2008 at 14:40, Andrej van der Zee [EMAIL PROTECTED] wrote: Hi, 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

Re: load balancer workers

2008-10-09 Thread Jim Jagielski
On Oct 8, 2008, at 5:26 PM, Vinicius Petrucci wrote: I don't think the approach you are suggesting will work. I would suggest duplicating the workers at startup, enable/disable in each balancer to 'move' them. Correct. So you cannot change the assignment of workers to a balancer during

Re: number of bytes/packets sent/received

2008-10-09 Thread Andrej van der Zee
Thanks for your reply! Giving it a second thought, the problem looks complicated. Such filter-based counters would count the traffic of _one_ apache process. When you increment the counter, you have to protect it from concurrent access by other threads running in the same apache child

Re: Apache httpd 2.2.10 test tarballs available...

2008-10-09 Thread Jim Jagielski
On Oct 8, 2008, at 4:44 PM, Paul Querna wrote: William A. Rowe, Jr. wrote: Oden Eriksson wrote: Den Wednesday 08 October 2008 19:50:06 skrev William A. Rowe, Jr.: Akins, Brian wrote: On 10/7/08 8:49 PM, William A. Rowe, Jr. [EMAIL PROTECTED] wrote: Sure sounds like this is a

Re: number of bytes/packets sent/received

2008-10-09 Thread Dave Ingram
I forgot to mention, but I need the number of packets / bytes per HTTP request and log it to a database with other information. So I guess that would take case of all the hairy stuff. I think I will give it a go as you recommend with an input and output filter that only counts the bytes and

Re: number of bytes/packets sent/received

2008-10-09 Thread Andrej van der Zee
Hi Dave, Would mod_logio be at all helpful? http://httpd.apache.org/docs/2.2/mod/mod_logio.html I haven't looked into it, but the source might give you some ideas. You may even have a direct solution if you use a module that logs directly to a database. I must admit that I don't know

Re: number of bytes/packets sent/received

2008-10-09 Thread Andrej van der Zee
Hi, No, the Content-Length doesn't include the size of the headers. Yes of course, but you could add the length of all r-headers_in. I just wondered if the content-type reflects the actual size, for example if the request is compressed. While I was typing the message, Dave Ingram's message

Re: number of bytes/packets sent/received

2008-10-09 Thread Dave Ingram
Would mod_logio be at all helpful? You really made it easy for me huh? Thanks alot. No use in doing more work than you need to ;-) To be honest, I only found out about it today while researching some obscure logging options. A quick search reveals that there are some modules out

Re: number of bytes/packets sent/received

2008-10-09 Thread Andrej van der Zee
Hi, A quick search reveals that there are some modules out there that do log to databases, but I don't know how well-maintained they are (mod_log_sql only mentions Apache 2.0, for example) or how much work they would be to use (an O'Reilly page

Re: number of bytes/packets sent/received

2008-10-09 Thread Dave Ingram
A quick search reveals that there are some modules out there that do log to databases, but I don't know how well-maintained they are (mod_log_sql only mentions Apache 2.0, for example) or how much work they would be to use (an O'Reilly page

Logging authentication requests

2008-10-09 Thread Dave Ingram
Hi all, Just thinking about logging... Is it currently possible to log authentication requests (ideally both success and failure, individually)? If not, is it possible? And where should the module fit into the authentication chain? Is this related to Rick Houser's earlier posts about wrapping an

Re: PR45605 and event MPM

2008-10-09 Thread Greg Ames
On Tue, Oct 7, 2008 at 7:03 PM, Ruediger Pluem [EMAIL PROTECTED] wrote: One comment in the event version of ap_queue_info_wait_for_idler confuses me: * A negative value in queue_info-idlers tells how many * threads are waiting on an idle worker. IMHO this would require

Re: proxy_ajp connect timeout fix.

2008-10-09 Thread Matt Stevenson
Had a bit more time, here is a patch that should work for Unix which have apr_wait_for_io_or_timeout available. I can't test windows/others so that's the reason for the ifdef. ProxyPass / balance://hotcluster/ Proxy balance://hotcluster # defaultish tomcat BalancerMember

Re: proxy_ajp connect timeout fix.

2008-10-09 Thread Ruediger Pluem
On 10/09/2008 10:11 PM, Matt Stevenson wrote: Had a bit more time, here is a patch that should work for Unix which have apr_wait_for_io_or_timeout available. I can't test windows/others so that's the reason for the ifdef. ProxyPass / balance://hotcluster/ Proxy balance://hotcluster #

Re: PR45605 and event MPM

2008-10-09 Thread Greg Ames
On Tue, Oct 7, 2008 at 7:03 PM, Ruediger Pluem [EMAIL PROTECTED] wrote: I am currently looking at PR45605 ( https://issues.apache.org/bugzilla/show_bug.cgi?id=45605) and the analysis and the resulting patch in Comment 4 look good to me

Re: PR45605 and event MPM

2008-10-09 Thread Ruediger Pluem
On 10/09/2008 10:53 PM, Greg Ames wrote: On Tue, Oct 7, 2008 at 7:03 PM, Ruediger Pluem [EMAIL PROTECTED] wrote: I am currently looking at PR45605 ( https://issues.apache.org/bugzilla/show_bug.cgi?id=45605) and the analysis and the resulting patch in Comment 4 look good to me

Speeding up mod_proxy_balancer on Windows

2008-10-09 Thread Jess Holle
I had previously discovered that mod_proxy_balancer takes over 1 second on Windows to determine that nothing is listening on the target port. This becomes problematic if you are balancing over a sparsely populated set of proxy ports. A Windows guru here found the Windows GetTcpTable which

Re: Speeding up mod_proxy_balancer on Windows

2008-10-09 Thread Jess Holle
P.S. Yes, I know this approach only has any hope of working when Apache and the proxy backends are on the same host. Jess Holle wrote: I had previously discovered that mod_proxy_balancer takes over 1 second on Windows to determine that nothing is listening on the target port. This becomes

Re: Apache httpd 2.2.10 test tarballs available...

2008-10-09 Thread Greg Ames
On Tue, Oct 7, 2008 at 2:37 PM, Jim Jagielski [EMAIL PROTECTED] wrote: ... at the usual location: http://httpd.apache.org/dev/dist/ The availability of these test tarballs does not constitute an official release, however please download and test as a VOTE will be called for in the

Re: Speeding up mod_proxy_balancer on Windows

2008-10-09 Thread Ruediger Pluem
On 10/09/2008 11:50 PM, Jess Holle wrote: P.S. Yes, I know this approach only has any hope of working when Apache and the proxy backends are on the same host. Jess Holle wrote: I had previously discovered that mod_proxy_balancer takes over 1 second on Windows to determine that nothing is

Re: Apache httpd 2.2.10 test tarballs available...

2008-10-09 Thread William A. Rowe, Jr.
Jim Jagielski wrote: On Oct 8, 2008, at 4:44 PM, Paul Querna wrote: So Can we ask the mod_fcgid project if we could import it? If they are willing to change the license :) You totally miss the point. We aren't entirely clear if this author even has the IP they claim to have (talk

Re: Speeding up mod_proxy_balancer on Windows

2008-10-09 Thread Jess Holle
Ruediger Pluem wrote: Did you check whether the currently running thread proxy_ajp connect timeout fix. (http://mail-archives.apache.org/mod_mbox/httpd-dev/200810.mbox/[EMAIL PROTECTED] and http://mail-archives.apache.org/mod_mbox/httpd-dev/200810.mbox/[EMAIL PROTECTED]) does fix your issue