* Rack 1.1.0 and FCGI problem
@ 2010-08-17 19:46 Fabio
0 siblings, 0 replies; only message in thread
From: Fabio @ 2010-08-17 19:46 UTC (permalink / raw)
To: Rack Development
Hi all
using rack 1.1.0, apparently a dependency from rails 2.3.8, with ruby
1.8.7
on a shared hoster, hostmonster.com, with refinerycms.
I am having an issue with the fastcgi handler. When running the
application after the fresh install, I was getting an error:
undefined method `_rack_read_without_buffer'
After googling, I found there was a bug in the fastcgi.rb handler, so
I followed the instructions, and put the "alias
_rack_read_without_buffer read" line after the def read block. But now
I am getting:
/!\ FAILSAFE /!\ Tue Aug 17 13:38:52 -0600 2010
Status: 500 Internal Server Error
stack level too deep
/home/piertwom/.bundle/ruby/1.8/gems/rack-1.1.0/lib/rack/handler/
fastcgi.rb:9:in `_rack_read_without_buffer'
/home/piertwom/.bundle/ruby/1.8/gems/rack-1.1.0/lib/rack/handler/
fastcgi.rb:9:in `read'
/home/piertwom/.bundle/ruby/1.8/gems/rack-1.1.0/lib/rack/
rewindable_input.rb:83:in `make_rewindable'
/home/piertwom/.bundle/ruby/1.8/gems/rack-1.1.0/lib/rack/
rewindable_input.rb:26:in `read'
After a few attempts, this is how the class currently looks like:
if defined? FCGI::Stream
class FCGI::Stream
def read(n, buffer=nil)
buf = _rack_read_without_buffer n
buffer.replace(buf.to_s) if buffer
buf
end
class_eval("alias _rack_read_without_buffer read")
end
end
Still gettting the "stack level too deep" error.
Anyone an idea how this needs to be put??? Please help asap, need to
install my app for a client presentation. Thanks soooo much!
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-08-17 22:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-17 19:46 Rack 1.1.0 and FCGI problem Fabio
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).