[PATCH] some progress with apr_socket_data_get()/apr_socket_data_set()

2003-04-16 Thread Jeff Trawick
You may have known that socket data is implemented as pool userdata in a manner that prevented multiple sockets from the same pool being able to use the same key for socket data. Another problem is that any cleanup specified in the call to apr_socket_data_set() is run when the pool is cleaned

Re: [PATCH] some progress with apr_socket_data_get()/apr_socket_data_set()

2003-04-16 Thread Jeff Trawick
Justin Erenkrantz wrote: --On Tuesday, April 15, 2003 7:39 PM -0400 Jeff Trawick [EMAIL PROTECTED] wrote: You may have known that socket data is implemented as pool userdata in a manner that prevented multiple sockets from the same pool being able to use the same key for socket data. Another

Re: [PATCH] some progress with apr_socket_data_get()/apr_socket_data_set()

2003-04-16 Thread Justin Erenkrantz
--On Wednesday, April 16, 2003 8:14 AM -0400 Jeff Trawick [EMAIL PROTECTED] wrote: The context where I see this as useful is with utility routines (e.g., support libraries) that perform operations using the socket but don't have any leeway in how the app uses pools. (This is a natural for an

Re: [PATCH] some progress with apr_socket_data_get()/apr_socket_data_set()

2003-04-16 Thread Allan Edwards
Justin Erenkrantz wrote: Store that key in the apr_socket_data? Another cheesy idea may be to use a linked list with the key in the structure. I'm just really thinking that for the general case, a key/value backing (like a hash) is overkill. I'm just not clear this is going to be more than 2

Re: [PATCH] some progress with apr_socket_data_get()/apr_socket_data_set()

2003-04-16 Thread William A. Rowe, Jr.
At 07:14 AM 4/16/2003, Jeff Trawick wrote: Justin Erenkrantz wrote: --On Tuesday, April 15, 2003 7:39 PM -0400 Jeff Trawick [EMAIL PROTECTED] wrote: You may have known that socket data is implemented as pool userdata in a manner that prevented multiple sockets from the same pool being able to