Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

call readpartial and peeraddr on @socket if available to support puma's ... #36

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

ghost
Copy link

@ghost ghost commented Nov 12, 2014

same solution as #35 but with setting addrinfo through @socket.peeraddr

@ngauthier
Copy link
Owner

Awesome, much shorter. Could you add a test that covers the scenario where we have a different kind of socket?

@ghost
Copy link
Author

ghost commented Nov 12, 2014

I found some more issues with puma's ssl socket, will fix them as well and add the test afterwards

@ngauthier
Copy link
Owner

thanks!

On Wed, Nov 12, 2014 at 9:41 AM, alexandermayr [email protected]
wrote:

I found some more issues with puma's ssl socket, will fix them as well and
add the test afterwards


Reply to this email directly or view it on GitHub
#36 (comment).

end

def closed?
@socket.closed?
return @socket.closed? if @socket.respond_to?(:closed?)

Choose a reason for hiding this comment

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

This will not get call as it will fail when calling the method closed? and raise error at the first place.

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.

2 participants