apr_uri_string_encode/decode

2006-08-02 Thread david reid
First pass at importing some apreq functions. Not yet had time to wirte a test! Rushing out of door, so just a quick mail :-) More integration with apr_uri structure is planned, but not yet had time to finish that bit :-) -- Index: include/apr_uri.h

How to detect is the socket is still open

2006-08-02 Thread Mladen Turk
Hi, We have a problem with mod_proxy and the way how we detect if the connection is still opened. Right now, the algorithm for that is as follows: 1. Remember socket timeout 2. Set timeout to 0 3. Try to read one byte 4. Restore timeout 6. If read is APR_STATUS_IS_EOF return False 5. Else

Re: apr_uri_string_encode/decode

2006-08-02 Thread Nick Kew
On Wednesday 02 August 2006 11:58, david reid wrote: First pass at importing some apreq functions. Not yet had time to wirte a test! Rushing out of door, so just a quick mail :-) fairy nuff1 +/** + * @fn apr_size_t apr_uri_query_string_encode(char *dest, const char *src, +

Re: How to detect is the socket is still open

2006-08-02 Thread Joe Orton
On Wed, Aug 02, 2006 at 01:42:52PM +0200, Mladen Turk wrote: We have a problem with mod_proxy and the way how we detect if the connection is still opened. Polling the socket is all you can do, but all that tells you is whether the local end of the TCP socket has already received a FIN/RST.

Re: apr_uri_string_encode/decode

2006-08-02 Thread david reid
Nick Kew wrote: On Wednesday 02 August 2006 11:58, david reid wrote: First pass at importing some apreq functions. Not yet had time to wirte a test! Rushing out of door, so just a quick mail :-) fairy nuff1 +/** + * @fn apr_size_t apr_uri_query_string_encode(char *dest, const char

apr_quote

2006-08-02 Thread david reid
More code taken from apreq - this time more modified to fit with apr and even with a test case! Really out the door this time :-) Index: include/apr_strings.h === --- include/apr_strings.h (revision 416632) +++

Re: How to detect is the socket is still open

2006-08-02 Thread Mladen Turk
Joe Orton wrote: On Wed, Aug 02, 2006 at 01:42:52PM +0200, Mladen Turk wrote: We have a problem with mod_proxy and the way how we detect if the connection is still opened. Polling the socket is all you can do, but all that tells you is whether the local end of the TCP socket has already

Re: apr_quote

2006-08-02 Thread Max Bowsher
david reid wrote: Index: include/apr_strings.h === --- include/apr_strings.h (revision 416632) +++ include/apr_strings.h (working copy) @@ -348,6 +348,35 @@ */ APR_DECLARE(char *) apr_strfsize(apr_off_t size,

Re: apr_uri_string_encode/decode

2006-08-02 Thread Justin Erenkrantz
On 8/2/06, david reid [EMAIL PROTECTED] wrote: Of course it does raise the question about where should these live? If we consider them to be strings function then they probably belong inside apr's strings funcs, but if they are uri functions then this is the correct place. Thoughts? If it's

Re: apr_uri_string_encode/decode

2006-08-02 Thread William A. Rowe, Jr.
Justin Erenkrantz wrote: On 8/2/06, david reid [EMAIL PROTECTED] wrote: Of course it does raise the question about where should these live? If we consider them to be strings function then they probably belong inside apr's strings funcs, but if they are uri functions then this is the correct

Re: How to detect is the socket is still open

2006-08-02 Thread Gonzalo Paniagua Javier
On 8/2/06, Mladen Turk [EMAIL PROTECTED] wrote: Hi, We have a problem with mod_proxy and the way how we detect if the connection is still opened. Right now, the algorithm for that is as follows: 1. Remember socket timeout 2. Set timeout to 0 3. Try to read one byte 4. Restore timeout 6. If

[Fwd: Re: How to detect is the socket is still open]

2006-08-02 Thread Ruediger Pluem
Reposting what I sent to Mladen in private. Just missed that his address was in to and not dev@apr.apache.org :-) Original Message Subject: Re: How to detect is the socket is still open Date: Wed, 02 Aug 2006 21:57:36 +0200 From: Ruediger Pluem [EMAIL PROTECTED] To: Mladen Turk

Re: [Fwd: Re: How to detect is the socket is still open]

2006-08-02 Thread Gonzalo Paniagua Javier
What does poll (with timeout zero) return in the case that the socket has been closed? It reports that the socket is readable. -Gonzalo

modphp problems with file =64k

2006-08-02 Thread Paul Smedley
Hi Guys, I'm maintaining OS/2 versions of Apache2 and PHP5. They work nicely, except for some issues in modphp which I've thus far been unable to root cause. Last night I made some progress in diagnosing the problems. I got a testcase testbuffer.php as follows: ?php $infile = block.htm; $fh

[STATUS] (apr) Wed Aug 2 23:45:27 2006

2006-08-02 Thread Rodent of Unusual Size
APACHE PORTABLE RUNTIME (APR) LIBRARY STATUS: -*-text-*- Last modified at [$Date: 2006-07-19 06:20:22 -0400 (Wed, 19 Jul 2006) $] Releases: Standalone 1.3.0 : in development 1.2.2 : released October 11, 2005 1.2.1 : released August 18, 2005 1.2.0

[STATUS] (apr-util) Wed Aug 2 23:46:19 2006

2006-08-02 Thread Rodent of Unusual Size
APRUTIL LIBRARY STATUS: -*-text-*- Last modified at [$Date: 2006-05-08 17:41:41 -0400 (Mon, 08 May 2006) $] Release: 1.3.0 : in development 1.2.8 : in development 1.2.7 : tagged April 9, 2006 1.2.6 : released March 25, 2006