OpenBSD's Apache 1.3.x is compiled with EAPI. Is there a way to access the client socket then, so that I can select() or poll() on it?
Does anybody please have a hint here? Regards Alex On Mon, Mar 1, 2010 at 9:57 AM, Alexander Farber <alexander.far...@gmail.com> wrote: > > Perfect solution would be to poll() at the both sockets (80 and 8080) > and forward the data in both directions. But unfortunately this > isn't possible with Apache 1 (would it work with Apache 2? > Can I get ahold of the client socket there and can I poll() it?) > > So I try the other trick: when the web client needs to send > a new asynchronous message to the game daemon, > I cancel the previous connection (unfortunately the Apache > module doesn't notice that, because it is blocking while reading > from the port 8080 socket) and also in the game daemon > I take the notice, that a new message has arrived from the same > user and close the port 8080 socket to the old Apache module. > > Unfortunately this works only few times and then I hit the max. > children limitation of Apache (I've set it to 10 at my debug server) > and Apache refuses to accept further connections. > > I'm using Apache 1.3.x of OpenBSD 4.5 and the source code > of my Apache module is at http://pastebin.com/FvnXieN7