Re: PATCH: Determine how many bytes are waiting to be read from a socket

2004-03-05 Thread Scott Lamb
On Mar 4, 2004, at 9:17 PM, Robert Norris wrote: On Thu, Mar 04, 2004 at 07:39:48PM -0600, Scott Lamb wrote: On Mar 4, 2004, at 6:44 PM, Robert Norris wrote: The connection is only closed if the socket is readable and there's no bytes waiting. The results of select()/poll() are undefined u

Re: PATCH: Determine how many bytes are waiting to be read from a socket

2004-03-05 Thread Scott Lamb
On Mar 4, 2004, at 6:44 PM, Robert Norris wrote: On Thu, Mar 04, 2004 at 06:04:05PM -0600, Scott Lamb wrote: On Mar 4, 2004, at 4:51 PM, Robert Norris wrote: I use this to determine if the peer has closed the connection. In that case, the socket goes readable, and this function reports 0 bytes

Re: PATCH: Determine how many bytes are waiting to be read from a socket

2004-03-05 Thread Scott Lamb
On Mar 4, 2004, at 4:51 PM, Robert Norris wrote: Attached is a patch that adds a function apr_socket_pending(). This allows the caller to find out how many bytes are waiting to be read from a socket without actually reading those bytes. I use this to determine if the peer has closed the connectio

apr_socket_timeout speed (was Re: Compile-time vs. run-time checks)

2004-02-24 Thread Scott Lamb
On Feb 23, 2004, at 11:11 PM, Cliff Woolley wrote: On Mon, 23 Feb 2004, Scott Lamb wrote: significant difference between them. In transferring either big or small files with httpd-2.0 HEAD and ab over loopback on Darwin (keepalive on). Which I'd think would be the ideal situation for seei

Re: Compile-time vs. run-time checks

2004-02-24 Thread Scott Lamb
On Feb 23, 2004, at 1:43 PM, Greg Stein wrote: On Mon, Feb 23, 2004 at 01:33:31PM -0600, Scott Lamb wrote: I'm putting together a patch to use SO_(RCV|SND)TIMEO for apr_socket_timeout where available; I expect I'll find it has better performance on some platforms, as it would no long

Compile-time vs. run-time checks

2004-02-23 Thread Scott Lamb
it will be run with one as well? Or should I include a runtime check for this option? Thanks, Scott Lamb

Re: Is there any wrapper lib using C++

2003-11-13 Thread Scott Lamb
is much friendlier to deal with than the original C API. If you end up doing anything with this code, please let me know. Scott Lamb

Re: 0.9.0 release

2002-08-29 Thread Scott Lamb
roken with layout apr - it returns -lapr instead of -lapr-0. Patch attached. I couldn't use APR_LIBNAME as is because it has a lib prefix. I stripped it out in the definition; seemed the most clean thing to do. -- Scott Lamb - Remove "lib" prefix from APR_LIBNAME definition. - De

[PATCH] fix apr-config --link-ld --libs

2002-08-26 Thread Scott Lamb
apr-config is giving me -lapr instead of -lapr-0. The attached patch seems to fix this problem. -- Scott Lamb Index: apr-config.in === RCS file: /home/cvspublic/apr/apr-config.in,v retrieving revision 1.22 diff -u -r1.22 apr