I have a periodically_call_remote call in a partial running at 0.20
times a second.
<%= periodically_call_remote(:update => 'ack_distance_output',
:frequency => 0.2,
:url=>{:action => :ackAdjustDistance})
%>
the action looks like this
def ackAdjustDistance
@calMessage = Calibration.getMessage
if(@calMessage.Value == "4") # CALVAR_LINE_EVENT
render(:inline => %{
<%= image_tag("stop.png", :class => "bevel",
:width => "256", :height => "256") %>
<br><br> })
return
else
render(:inline => %{ <%= image_tag("arrow_down.png", :class =>
"bevel",
:width => "256", :height => "256") %> })
return
end
end
after a couple minutes I get the following error
Errno::EMFILE (Too many open files -
script/../config/../tmp/sessions//ruby_sess.3b99572316c49027):
Once this happens mongrel can't find anything. the only recovery is the
restart the web server.
The periodic render has an image_tag which appears to be opening the
image file and its not being released emediatly?
Anything I can do to fix this?
Scott
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Mongrel-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/mongrel-users