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

Closed
unbit opened this Issue Sep 26, 2012 · 2 comments

Comments

Projects
None yet
3 participants
@unbit
Contributor

unbit commented Sep 26, 2012

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

This comment has been minimized.

Show comment
Hide comment
@rkh

rkh Sep 26, 2012

Member

So, just adding each will fix that?

Member

rkh commented Sep 26, 2012

So, just adding each will fix that?

@unbit

This comment has been minimized.

Show comment
Hide comment
@unbit

unbit Sep 26, 2012

Contributor

yes, exactly

Contributor

unbit commented Sep 26, 2012

yes, exactly

zzak added a commit to zzak/rack that referenced this issue Nov 2, 2012

@raggi raggi closed this in d186029 Nov 2, 2012

raggi added a commit that referenced this issue Jan 4, 2013

raggi added a commit that referenced this issue Jan 4, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment