can't read from stdin (pass fds)
Brought to you by:
samh
Hi,
The following test script breaks under speedycgi:
#!/usr/bin/speedy
read (STDIN, my $data, -s STDIN);
print "Data:\n$data\n";
Works fine under perl. The -s test fails for some
reason, I assume it's something to do without how
SpeedyCGI maps the file handles.
Cheers,
Alex
Logged In: YES
user_id=11128
Since -s doesn't make sense on pipes and sockets, I assume
the above code only works reliably when STDIN is a regular
file.
Since speedy always turns the stdio files into sockets, -s
isn't going to work on STDIN in the current
implementation. It might be possible to use I_SENDFD and
pass over a file-descriptor when the stdio files are known
to be regular files. I'll put this on the RFE list.