WeBrick and Windows CGI BUGS

The patch to add a delay for the deleting of the temporary files
work. But I seem to need a delay of 1.5 seconds or greater otherwise
I have sporadic errors. This does not seem right to me, I’ll look
into this some more.

There is a bug in cgihandler.rb under windows.

The popen should be opened in binary mode in windows or I sometimes
get errors in cgi_runner.rb when it tries to restore the hash.

cgihandler.rb Line 35

Thanks,

Walt

···

from : cgi_in = IO::popen(@cgicmd, “w”)
to : cgi_in = IO::popen(@cgicmd, “wb”)


Walter Szewelanczyk
IS Director
M.W. Sewall & CO. email : walter@mwsewall.com
259 Front St. Phone : (207) 442-7994 x 128
Bath, ME 04530 Fax : (207) 443-6284


In message 3F7027A1.10613.F016C0@localhost,

···

`walter@mwsewall.com’ wrote:

The popen should be opened in binary mode in windows or I sometimes
get errors in cgi_runner.rb when it tries to restore the hash.

cgihandler.rb Line 35
from : cgi_in = IO::popen(@cgicmd, “w”)
to : cgi_in = IO::popen(@cgicmd, “wb”)

I’ll apply this. Thanks.


gotoyuzo