httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Bloom <>
Subject Re: [PATCH] APR socket timeouts...
Date Mon, 04 Oct 1999 13:15:36 GMT

This code is already in the unix networking code.  It is done through the
ap_setsocketopt function.  Just use the APR_SO_TIMEOUT option.  I have
modified the docs a tiny little bit to make it sound like you can do more
than just turn options on or off, you can also set values.

We still need the change to client.c, but I don't think we need a whole
new API for this change.  We could probably use an ap_getsocketopt call
though.  :)

Let me know if what we have can work for BeOS.


On Sun, 3 Oct 1999, David Reid wrote:

> I couldn't figure out why the testsock test was failing constantly on 
> BeOS.  It looked like a synchronisation issue, which it didn't have 
> before!  Of course it was the timeouts!  I realised that there isn't 
> actually code to get/set the timeout into the socket structure, so here 
> are some.
> Addition to apr_network_io.h
> ap_status_t ap_settimeout(ap_socket_t *, ap_uint32_t );
> ap_status_t ap_gettimeout(ap_socket_t *, ap_uint32_t *); 

Ryan Bloom
4205 S Miami Blvd	
RTP, NC 27709		It's a beautiful sight to see good dancers 
			doing simple steps.  It's a painful sight to
			see beginners doing complicated patterns.	

View raw message