Skip to content

Conversation

@scbrubaker02
Copy link
Contributor

@scbrubaker02 scbrubaker02 commented Dec 4, 2016

Rack appears to be counting on eof? being defined on objects passed into its multipart parser, e.g. https://github.com/rack/rack/blob/master/lib/rack/multipart/parser.rb#L68 , but this method is not defined on Puma::NullIO. This created a problem for rack-2.0.1 and puma-3.6.0.

Perhaps, I am missing the full context, but it seems that it should simply return true.

Copy link
Contributor

@olleolleolle olleolleolle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a good addition to this class.

It was helpful that you added a contextual Github link to the code that relies on this method.

@olleolleolle
Copy link
Contributor

@nateberkopec This Rack commit began using #eof?: rack/rack@3f6aee5

@nateberkopec nateberkopec merged commit 41c4da6 into puma:master Dec 12, 2016
@nateberkopec
Copy link
Member

@olleolleolle I just added it to the commit message 👍

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants