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
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
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,
+
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.
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
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)
+++
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
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,
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
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
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
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
What does poll (with timeout zero) return in the case that the socket has been
closed?
It reports that the socket is readable.
-Gonzalo
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
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
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
16 matches
Mail list logo