From: Michael Neumann Date: 2001-12-01T21:01:38+09:00 Subject: [ruby-talk:27181] Re: Multithreading and cgi.rb Harry Ohlsen wrote: > I've written a small multi-threaded message board server. > > I originally tried to use cgi.rb, because I thought that made sense, > but hit problems because it assumes input is from $stdin and output is to > $stdout. Obviously, since I can have multiple threads running, I > couldn't just assign the socket for a connection to $stdin and $stdout, > since then I'd get intermingled I/O and everything would fall in a heap. Do you want multiple connections, i.e. handling multiple requests within one CGI application? This is impossible with CGI. Have a look at FastCGI. Regards, Michael -- Michael Neumann merlin.zwo InfoDesign GmbH http://www.merlin-zwo.de