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
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
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
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
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