monit-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: monit http server exit


From: Christian Hopp
Subject: Re: monit http server exit
Date: Mon, 15 Sep 2003 14:49:04 +0200 (CEST)

On Sun, 14 Sep 2003, Jan-Henrik Haukeland wrote:

> Martin Pala <address@hidden> writes:
>
> > Martin Pala wrote:
> >
> >> Hmm, monit http server blocks on accept(), which causes it not to
> >> exit until it receives connection. It will be needed to implement
> >> some sort of wakeup or timeout to finalize it gracefully without
> >> waiting for the connection to stop the server. I'll look on it.
> >>
> > I looked on it - probably the best way will be to make monit http
> > server non-blocking. What do you think?
>
> Absolutely, the previous implementation was really not good. Using
> poll like you have done is the right way and the best way to do this,
> but poll does not exist on all systems, and I'm uncertain about *BSD
> systems if they actually has poll. CAN SOMEONE PLEASE VERIFY!! (If
> they do not have poll, using select instead of poll is an option since
> I'm pretty sure most systems has select).

poll() is Posix2001 and available (verification by man-page) in *BSD.

Good work Martin!

CHopp

-- 
Christian Hopp                                email: address@hidden
Institut für Elektrische Informationstechnik             fon: +49-5323-72-2113
TU Clausthal, Leibnizstr. 28, 38678 Clausthal-Zellerf.   fax: +49-5323-72-3197
                             pgpkey: https://www.iei.tu-clausthal.de/pgp-keys/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]