Skip to content

Loading…

Rack::BodyProxy#method_missing failing on ruby 1.9 c api #434

Closed
unbit opened this Issue · 2 comments

3 participants

@unbit

In the uWSGI project we faced the same issue described here:

http://bogomips.org/clogger.git/commit/?id=e1bed92891f7db5c2d24040778fe31f76d723efe

basically the &block, if mapped to a c function, is never called/used.

We bypassed the problem with monkeypatching:

http://projects.unbit.it/uwsgi/browser/plugins/rack/rack_plugin.c#L993

simply defining the 'each' method

Note: in the clogger project, they stated 1.9.3 is not affected by that behaviour but we got confirmation it is still present.

@rkh
Official Rack repositories member

So, just adding each will fix that?

@unbit

yes, exactly

@zzak zzak added a commit to zzak/rack that referenced this issue
@zzak zzak Rack::BodyProxy#each, fixes rack/rack#434 afc9b03
@raggi raggi closed this in d186029
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.