Re: [Speedycgi-users] Apache log/STDERR problems
Brought to you by:
samh
|
From: Sam H. <sa...@da...> - 2003-11-01 19:19:37
|
> The second shows up when running a simple script like this in a shell: > -------------------------------- > #!/usr/bin/speedy > print STDERR "STDERR print\n"; > print "normal print\n"; > -------------------------------- > I would expect the STDERR line to always appear first in the output, but > it does not. I don't think there's a way to preserve the order as long as speedycgi is using sockets for output from the backend. The backend puts both strings into separate unix sockets, which the kernel buffers. When the frontend goes to get the data, it sees two sockets with data available and no way to tell which one was written first. |