rack-devel archive mirror (unofficial) https://groups.google.com/group/rack-devel
 help / color / mirror / code / Atom feed
* 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
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
fastcgi.rb:9:in `_rack_read_without_buffer'
fastcgi.rb:9:in `read'
rewindable_input.rb:83:in `make_rewindable'
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
    class_eval("alias _rack_read_without_buffer read")

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

Code repositories for project(s) associated with this inbox:


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).