From: nobu.nokada@... Date: 2001-12-04T17:42:58+09:00 Subject: [ruby-talk:27420] Re: Multithreading and cgi.rb At Sat, 1 Dec 2001 17:58:16 +0900, Harry Ohlsen wrote: > 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. You can make new CGI subclass and override methods; env_table, stdinput and stdoutput. They're defaulted to return ENV, $stdin and $> respectively. Nobu Nakada