request_rec-cookies

2002-10-29 Thread Juan Rivera
Is there any easy way to get a list of the cookies (name/value pairs) from a client's request? Best regards, Juan C. Rivera Citrix Systems, Inc.

mod_proxy and AddOutputFilterByType

2002-10-30 Thread Juan Rivera
Question on Apache 2.0.43: I'm trying to use AddOutputFilterByType on a reverse proxy vhost. Looking at the code in core.c line 2633, it checks if the request is proxied and if so, they don't add the filters specified in the AddOutputFilterByType entries. Why?

RE: mod_blank dev

2002-11-04 Thread Juan Rivera
If you do: SetOutputFilter BLANK;DEFLATE should work with no problems. Best regards, Juan C. Rivera Citrix Systems, Inc. -Original Message- From: Justin Erenkrantz [mailto:jerenkrantz;apache.org] Sent: Sunday, November 03, 2002 2:04 PM To: [EMAIL PROTECTED] Subject: Re: mod_blank dev

XML-based configuration

2002-11-11 Thread Juan Rivera
Probably this issue has been brought many times. I wonder if there are any effort to support xml-based configuration files instead of the current format? Any links or pointers would be helpful. Since, Apache 2 does not support it probably is for a good reason(s). Anybody can point me to

mod_proxy question

2002-11-14 Thread Juan Rivera
I have a question about the way mod_proxy_http works. Does the thread block until the response from the back end server is completed? Is this MPM specific? Any document available about the basic architecture of mod_proxy? Juan C. Rivera

RE: Apache and persistent connections

2002-11-16 Thread Juan Rivera
: Saturday, November 16, 2002 8:27 AM To: [EMAIL PROTECTED] Subject: Re: Apache and persistent connections Juan Rivera [EMAIL PROTECTED] writes: I looked at how Apache 2 works and it seems like a thread holds a connection for the lifetime of it. Is this right? yes If I wanted to optimize

[PATCH]util_debug.c

2002-11-18 Thread Juan Rivera
The declarations of the debug versions for ap_strXXX may differ from the header file if the default calling convention is not the same as the one define for AP_DECLARE. Those functions are declared without the AP_DECLARE. This patch adds the AP_DECLARE to those functions.

Async I/O

2002-11-18 Thread Juan Rivera
I have been modifying the Winnt MPM to support IO Completion ports to avoid client per thread model. I also refactored mod_echo for testing purposes. I'm almost done but I think the async i/o is going to introduce all sorts of compatibility problems with filters that block while reading

RE: WELCOME to dev@httpd.apache.org

2002-11-19 Thread Juan Rivera
Title: RE: WELCOME to [EMAIL PROTECTED] You can write an output filter and configure it like this VirtualHost * Proxy Entries Here Proxy * SetOutputFilter MyFilterName /Proxy /VirtualHost Your filter will have a chance to look and modify the content that goes to the client

RE: [PATCH] mod_deflate extensions

2002-11-19 Thread Juan Rivera
Title: RE: [PATCH] mod_deflate extensions I agree that mod_deflate should be part of the distribution. Are there any issues with apache including zlib in the distribution? Best regards, Juan C. Rivera Citrix Systems, Inc. -Original Message- From: Jeff Trawick [mailto:[EMAIL

Custom Winnt MPM

2002-11-25 Thread Juan Rivera
Title: Custom Winnt MPM I've been working on an async i/o mpm for Windows using IO completion ports. I used the current winnt mpm as a starting point but I rather have it in it's own dll instead of linked directly in libhttpd. My question is how do I configure Apache to use my mpm? Is it

RE: Custom Winnt MPM

2002-11-26 Thread Juan Rivera
, November 25, 2002 6:11 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: Custom Winnt MPM At 04:54 PM 11/25/2002, Brian Pane wrote: On Mon, 2002-11-25 at 14:03, Juan Rivera wrote: I've been working on an async i/o mpm for Windows using IO completion ports. I used the current winnt

RE: request for comments: multiple-connections-per-thread MPM design

2002-11-26 Thread Juan Rivera
Title: RE: request for comments: multiple-connections-per-thread MPM design Brian, Does your model assume that connections are short lived (HTTP)? One problem with the current model is that if you implement, let's say mod_socks, it holds a connection per thread. Is that something your

Request for comments: Managing max connections per protocol

2002-11-27 Thread Juan Rivera
One of the missing pieces in Apache 2 to support multiple protocols is the ability to limit the number of connections per protocol. Right now you specify the max number of connections but there is no way to manage how many connections a particular protocol can manage. Anyways, the

Artificial delay on traffic

2003-02-13 Thread Juan Rivera
Title: Artificial delay on traffic I wrote a SOCKS module for Apache 2. I started off with the proxy_connect code and added the SOCKS handshake plus the filter chain on the client socket. I use it to pass ICA traffic. The ICA protocol is a very chatty protocol; it sends very small packets

RE: Artificial delay on traffic

2003-02-14 Thread Juan Rivera
To: [EMAIL PROTECTED] Subject: Re: Artificial delay on traffic Could it be TCP_CORK? -aaron On Thursday, February 13, 2003, at 12:14 PM, Juan Rivera wrote: I wrote a SOCKS module for Apache 2. I started off with the proxy_connect code and added the SOCKS handshake plus the filter chain

Apache i18n support

2003-03-07 Thread Juan Rivera
Has anybody looked into internationalizing Apache 2? There are a couple of areas like: Messages Error pages Multibyte/Unicode support Anything else? Is this in the roadmap for Apache? What are the caveats of doing it? Juan

Apache UTF-8

2003-03-11 Thread Juan Rivera
I'm starting to look into what would it takes to support UTF-8 in configuration files. This means modules must have to handle parameters in UTF-8 format. Anybody has any pointers that can help me? I think making Apache UTF-8 compliant will be very helpful. Do you guys agree?

Sending multiple buffers using writev and WSASend

2003-03-13 Thread Juan Rivera
When sending multiple buckets on a socket does writev and WSASend create a packet per buffer, or a single packet for all buffers? I would assume the answer might depend on the Operating system or maybe the size of the buffers. I'm interested in Windows 2000 and linux.

Reusing buffers when reading from socket

2003-03-20 Thread Juan Rivera
In the socket_bucket_read function (apr_bucket_socket.c) it reads from the socket using an 8K buffer. Now, if you only get 100 bytes, the rest of the buffer is wasted. Right? I guess HTTP typically gets large chucks of data at a time but when implementing other protocols this 8K

[PATCH] Winnt MPM missing my_pid in some ap_log_error calls

2003-06-04 Thread Juan Rivera
Two ap_log_error calls had the "Child %d" but no my_pid in the argument list. This patch adds my_pid so that the messages are displayed correctly. Juan child.c.patch Description: Binary data

EOS or FLUSH buckets

2003-06-09 Thread Juan Rivera
When should one use an EOS bucket vs. a FLUSH bucket? Juan

RE: EOS or FLUSH buckets

2003-06-09 Thread Juan Rivera
To: [EMAIL PROTECTED] Cc: '[EMAIL PROTECTED]' Subject: Re: EOS or FLUSH buckets At 04:29 PM 6/9/2003, Juan Rivera wrote: When should one use an EOS bucket vs. a FLUSH bucket? At EOS, that's all she wrote; body or connection finished, nothing more, don't call me, and I won't call you. So

RE: EOS or FLUSH buckets

2003-06-10 Thread Juan Rivera
] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 10, 2003 10:38 AM To: [EMAIL PROTECTED] Subject: Re: EOS or FLUSH buckets Juan Rivera wrote: Here is why I'm asking. I wrote a SOCKS proxy module. It has two connection records, one for the client and one for the backend server. When I received

[PATCH] Avoid unnecessary brigade splits on core input and output filters. WAS: EOS or FLUSH buckets

2003-06-10 Thread Juan Rivera
PROTECTED] Subject: Re: EOS or FLUSH buckets Juan Rivera wrote: Right, my module leaks memory because the core input and output filters split the bucket brigades. So it keeps creating more and more bucket brigades that are not released until the connection is gone. When you see this, are we

RE: [PATCH] Avoid unnecessary brigade splits on core input and output filters. WAS: EOS or FLUSH buckets

2003-06-11 Thread Juan Rivera
Title: RE: [PATCH] Avoid unnecessary brigade splits on core input and output filters. WAS: EOS or FLUSH buckets Cliff, How would the code look like? I tried unsplicing from the first bucket to the bucket previous to e and then splicing it at the tail of b. But didn't work. I don't

Socket Read Buffer Size

2003-06-12 Thread Juan Rivera
Have you guys ever considered making the size of the socket read buffer configurable (default is 8K)? Juan

RE: [PATCH] Avoid unnecessary brigade splits on core input and output filters. WAS: EOS or FLUSH buckets

2003-06-12 Thread Juan Rivera
Title: RE: [PATCH] Avoid unnecessary brigade splits on core input and output filters. WAS: EOS or FLUSH buckets Cliff, Is your code assuming that b is empty? If so, I'm not sure we can make that assumption. -Original Message- From: Cliff Woolley [mailto:[EMAIL PROTECTED]] Sent:

RE: [PATCH] Avoid unnecessary brigade splits on core input and ou tput filters. WAS: EOS or FLUSH buckets

2003-06-12 Thread Juan Rivera
Title: RE: [PATCH] Avoid unnecessary brigade splits on core input and output filters. WAS: EOS or FLUSH buckets My bad, never mind. You are fixing up the ctx-b pointers. I'm going to try it out. -Original Message- From: Juan Rivera [mailto:[EMAIL PROTECTED] Sent: Thursday

[PATCH] EventLog display name patch

2003-06-18 Thread Juan Rivera
Title: [PATCH] EventLog display name patch The current nt_eventlog implementation has the hardcoded Apache Service as the event log application name. This can be problematic if you have multiple instances of Apache running on the same box. If, for instance, you register multiple apache

RE: [PATCH] EventLog display name patch

2003-06-18 Thread Juan Rivera
/httpd.conf: -Original Message- From: Juan Rivera [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 10:59 AM To: [EMAIL PROTECTED] Subject: [PATCH] EventLog display name patch The current nt_eventlog implementation has the hardcoded Apache Service as the event log

RE: [PATCH] EventLog display name patch

2003-06-18 Thread Juan Rivera
To: [EMAIL PROTECTED] Subject: Re: [PATCH] EventLog display name patch At 09:59 AM 6/18/2003, Juan Rivera wrote: The current nt_eventlog implementation has the hardcoded Apache Service as the event log application name. This can be problematic if you have multiple instances of Apache running

Pre shutdown hook

2003-06-23 Thread Juan Rivera
Has anybody consider providing a hook to be called right before shutting down the server? This is the scenario: A module creates a thread during initialization and then you want to close the thread during shutdown. I figured this could be done by registering a destroy function in a

APR_BUCKET_BUFF_SIZE question

2003-07-09 Thread Juan Rivera
Title: APR_BUCKET_BUFF_SIZE question So currently Apache reads from the socket in APR_BUCKET_BUFF_SIZE chunks (8000 bytes by default) This value is a compiled value and can not be changed or configure at runtime. I was wondering if there is a particular reason not to make this

RE: APR_BUCKET_BUFF_SIZE question

2003-07-09 Thread Juan Rivera
or a theoretical one? -Original Message- From: Cliff Woolley [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 09, 2003 6:25 PM To: '[EMAIL PROTECTED]' Subject: Re: APR_BUCKET_BUFF_SIZE question On Wed, 9 Jul 2003, Juan Rivera wrote: That way a filter could ask for more or less bytes than

RE: Message: winnt_accept: Asynchronous AcceptEx failed.

2003-07-28 Thread Juan Rivera
Title: RE: Message: winnt_accept: Asynchronous AcceptEx failed. What are the circumstances for this to happen? -Original Message- From: Bill Stoddard [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 27, 2003 10:30 PM To: [EMAIL PROTECTED] Subject: Re: Message: winnt_accept:

Scoreboard access rights on Windows

2003-08-18 Thread Juan Rivera
Title: Scoreboard access rights on Windows Does Apache set access rights in the scoreboard so that no other processes can write to it? I refer to named scoreboards using ScoreBoardFile. Juan

ErrorDocument and ProxyPass rules

2003-09-09 Thread Juan Rivera
Title: ErrorDocument and ProxyPass rules I'm trying to figure out how you can configure ErrorDocument when using ProxyPass / http://webserver/ The problem is that if I use a URL like ErrorDocument 502 /error/502.html it will be proxied instead of picking the file locally. Any suggestions

Sync to CVS problem

2003-09-17 Thread Juan Rivera
Title: Sync to CVS problem Hi, I have previously downloaded a copy of the Apache server code from the cvs repository using "anoncvs" login and CVSROOT=:pserver:[EMAIL PROTECTED]:/home/cvspublic. However, I am unable to connect to the server for the past couple of days. I get the following

[PATCH] Apache -k restart for Winnt fix

2002-10-14 Thread Juan Rivera
There is a problem when calling apache -k restart. The issue is with permissions set with the service control manager. It happens that Apache sends a user define control code for restarting, signal 128. But when getting the handle of the service it is not passing the flag to allow user

RE: Compiling Apache modules for windows

2002-10-15 Thread Juan Rivera
Igor, You have to put the replace entries like this: Proxy /someloc Replace colour color text/html SetOutputFilter REPLACE /Proxy ProxyPass /someloc http://Server/someloc ProxyPassReverse /someloc http://Server/someloc Best