>From within a mod_perl request handler, fileno(STDOUT) returns -1, which is 
>the same thing I got from $r->FILENO.

Any other ideas?


On Wed, 17 Jan 2007 17:26:56 -0500, Robert Landrum <[EMAIL PROTECTED]> wrote:
> Daniel Risacher wrote:
>> Is it possible to get the file descriptor for the client socket from the
> RequestRec?
>>
>> I.e. something like $r->FILENO (which doesn't seem to work) or perhaps
> $r->connection->client_socket->os_sock
>>
>> (os_sock exists in the APR structure in C, but there doesn't seem to be
> a perl accessor method.)
>>
>> Reason I want to do this... I'm trying write a perl module to pass the
> connection to another process using File::FDpasser.
>>
> 
> $fd = fileno(STDOUT); won't work?
> 
> Is this really what you want to do?  I think apache will still terminate
> the connection (I'm not sure there's away to avoid that).
> 
> Rob

Reply via email to