G
George Moschovitis
Somewhat related to the earlier post:
Some time ago another ruby user tried UNSUCCESSFULLY the following code:
FCGI.each do |fcgi|
Thread.new(fcgi) { |f|
f.out.print "Content-type: text/html\r\n\r\n"
f.out.print f.out.type, "<br>\n"
...
}
end
matz replied:
fcgi is not thread-safe. Unlike other IO facilities, it does not try to
avoid IO blocking. I'll make fcgi thread-safe soon (or I hope someone
voluneer to update it).
Is fcgi thread safe now ? Can code like this work with fcgi?
thanks in advance,
George Moschovitis
Some time ago another ruby user tried UNSUCCESSFULLY the following code:
FCGI.each do |fcgi|
Thread.new(fcgi) { |f|
f.out.print "Content-type: text/html\r\n\r\n"
f.out.print f.out.type, "<br>\n"
...
}
end
matz replied:
fcgi is not thread-safe. Unlike other IO facilities, it does not try to
avoid IO blocking. I'll make fcgi thread-safe soon (or I hope someone
voluneer to update it).
Is fcgi thread safe now ? Can code like this work with fcgi?
thanks in advance,
George Moschovitis