Re: file descriptor for client socket?

2007-01-30 Thread Daniel Risacher
I determined empirically that the file descriptor of the client socket is always 0 in my environment. I assume this is only true for the Prefork MPM. For the curious, the code I developed is for a Comet/pushlet type server. Looks like this: --- Handoff.pm --- package Handoff; use strict

Re: file descriptor for client socket?

2007-01-19 Thread Torsten Foertsch
On Friday 19 January 2007 08:01, Daniel Risacher wrote: From within a mod_perl request handler, fileno(STDOUT) returns -1, which is the same thing I got from $r-FILENO. Any other ideas? $r-connection-client_socket is an APR::Socket. It corresponds to an apr_socket_t in C. This structure

Re: file descriptor for client socket?

2007-01-18 Thread Daniel Risacher
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

file descriptor for client socket?

2007-01-17 Thread Daniel Risacher
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

Re: file descriptor for client socket?

2007-01-17 Thread Robert Landrum
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