WeBrick and Windows CGI BUGS

W

walter

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
from : cgi_in = IO::popen(@cgicmd, "w")
to : cgi_in = IO::popen(@cgicmd, "wb")



Thanks,


Walt
*****************************************************
Walter Szewelanczyk
IS Director
M.W. Sewall & CO. email : (e-mail address removed)
259 Front St. Phone : (207) 442-7994 x 128
Bath, ME 04530 Fax : (207) 443-6284
*****************************************************
 
G

GOTOU Yuuzou

In message said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,740
Latest member
AdolphBig6

Latest Threads

Top