Re: [Speedycgi-users] Apache log/STDERR problems
Brought to you by:
samh
|
From: Grant D. <gr...@wo...> - 2003-11-04 20:28:34
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Fair enough...the only reason I included this in my messages was that I thought it might be related to the other problems I was seeing. Is it? - -Grant Sam Horrocks wrote: > > 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. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE/qAt3R1hIw/wbsQkRAnGDAJ9EedsBc6ASW1DT1HqdwL10DaD3MwCgguhR 1BylfQzZDdcDQBycJ8raBAs= =b1XU -----END PGP SIGNATURE----- |