You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by David Robinson <dr...@ast.cam.ac.uk> on 1996/03/04 14:27:00 UTC
Re: Scoreboard and sites...
>So, www.mit.edu is now running Apache 1.1b0 (which I patched to
>include the bind Listen feature), listening on both ports 80 and 8001.
>
>The question I've run into is: where is my scoreboard file hiding?
>I've tried it with both an explicit ScoreBoardFile directive and
>without. In both cases, no scoreboard file shows up and no error
>shows up in the error_log. This is running SunOS 4.1.4. I failed to
>find any ScoreBoard file documentation on the site at all.
I didn't expect anyone to actually use this feature...
There is a potential race condition in the implementation of listening
on multiple ports; there isn't a lock around select. The problem that
could occur is that two children are waiting (with select()) for
connections on port 80 and 8001; a connection is received on port 80,
and _both_ children might return from select() and call accept(). One
child will receive the connection, and the other will be stuck waiting
for another connection on port 80 _only_.
I doubt it would be a big problem, especially if another connection
to port 80 is imminent.
David.
What was build ?...
Posted by di...@elect6.jrc.it.
Just a minor niggle ?
What was finally build intop the newversion ? The
one I just pulled down (through a proxy so I might be
wrong as its caching is fucked up) did not have the
md_auth_msql build in, and the module in contrib is not the
new(er) one I submitted with the checking. Furthermore
mod_auth_anon was missing as well ?
And would it be possible to move apache-msql-demo.tar.gz
to some sensible visible location ? Again I could not find
this in my view of the contrib directory. Or did I miss
some mail. ?
Or did I screw up once more and look in the wrong plazces.
B.t.w. who is here at the IETF in LA ?
Sorry
Dw.
http://me-www.jrc.it/~dirkx http://ceo-www.jrc.it
DWvGulik@Dialis.xs4all.nl Dirk.vanGulik@jrc.it
+39 332 78 1322 +39 332 78 9549
fax +39 332 78 9185
ISEI/ESBA; The Center For Earth Observation
Joint Research Centre of the European Communities, Ispra, Italy
Re: Scoreboard and sites...
Posted by Dean Gaudet <dg...@hotwired.com>.
In article <m0...@mamba.ast.cam.ac.uk> you write:
>_both_ children might return from select() and call accept(). One
>child will receive the connection, and the other will be stuck waiting
>for another connection on port 80 _only_.
You can mark the sockets as non-blocking (in one of the three or four
different ways depending on the architecture) and then the accept()
will return immediately (with one of two different errnos).
I've found fcntl(s, F_SETFL, FNDELAY) to be the most portable method of
marking something non-blocking (should work on all the "modern" unixes,
and on dynix/ptx which is sysvr3). Look for O_NONBLOCK, or FNONBLK on
some systems instead of FNDELAY. Also look for ioctl() with FIONBIO.
The most portable method of checking for the would-block errnos is:
if( errno = EWOULDBLOCK || errno == EAGAIN ) {
/* call would block */
}
It still won't be optimal, but you won't have a child waiting on one
port only.
Dean