httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: NT benchmarks
Date Tue, 13 Jan 1998 11:53:32 GMT
I think that apache could be run in NT using the same process model as under 
because the Windows Sockets Version 2 api allows a socket handle to be passed
from one process to another quite easily.

The basic "pool of processes" thing will work out quite well, as it did in 
David Kashtan's
famous "eunice" port of Version 7 Unix functionality to VMS in the early 1980's.

The only real difference between the Unix calls and the Windows calls
is that in Unix:

{pid = fork(); if (pid) return(0); else return(i_am_the_child());}

Would be in WIN32

{CreateProcess(strprintf("httpd -child-of %d",getpid()));}

And the accept() logic for passing the accepted handle to the child process
would be in the parent, as would the logic be in the child to accept
the return value of accept() from the parent.

View raw message