Bojan Smojver
Wed, 23 Jul 2008 00:00:44 -0700
On Wed, 2008-07-23 at 08:56 +0200, Mladen Turk wrote: > Cannot do that. Cleanups are LIFO. First cleanup registered is res_clean > so it'll always be executed *last*. I wasn't talking about res_clean. > Socket cleanup is private, so > cannot modify that. When you create your socket with apr_socket_create(), there is a pool argument there. If you hang a cleanup off it, it will run before close() in socket_cleanup(). -- Bojan