httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Ames <grega...@remulak.net>
Subject Re: [PATCH] threaded.c and apr_thread_create() failures
Date Fri, 27 Jul 2001 15:21:58 GMT
Jeff Trawick wrote:
> 
> exit(APEXIT_CHILDFATAL) isn't too cool... the parent process bails out
> without cleaning stuff up

agreed, it sounds bad.  Is there more cleanup we could do without
getting into trouble?  Do we need something in between exit() and
clean_child_exit?

> this patch retries apr_thread_create() after an interval; apache stays
> healthy (though it doesn't free up system resources; it merely assumes
> they will free up after a time)

they may or may not free up
 
> maybe we shouldn't retry the thread creation endlessly?
 
> maybe we should sleep a different interval?

why don't we do an exponential backoff, starting at about a second and
ending at about a minute?  If it doesn't work after a minute, I don't
think there's any point in further retries.

Greg

Mime
View raw message