I'm trying to tweak a custom Apache Connection handler.  The short
description of what I want to do is this:

I receive a connection from an application.  I read the message which
tells me what work I should be doing.  I go off and do the work.  In
the time that I do the work, the application could decide that it has
waited too long and time out the connection.  When I get done working,
I want to check the socket to make sure it is still connected before I
send data across it.

I have looked at the docs, but I'm not making much for head-way. 
Checking the connection to see if it aborted ($c->aborted) did not
give me what I need.  I've tried polling the socket ($sock =
$c->client_sock(); ... $sock->poll( $c->pool, 5, APR::Const::POLLOUT )
) to see that I can send output on the socket, but this gives me the
same result when I close the connection as when I leave it open.

Any ideas or pointers on how to do this.  Even a redirect to some
(helpful) docs (Not the "Possible values: XXXX" docs) would be
helpful.

Thanks.

Ivan

Reply via email to