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

Somewhere along the way, the variable which held the new Client object i... #510

Merged
merged 1 commit into from
Apr 12, 2014
Merged

Somewhere along the way, the variable which held the new Client object i... #510

merged 1 commit into from
Apr 12, 2014

Conversation

momer
Copy link
Contributor

@momer momer commented Mar 28, 2014

...n #handle_servers was changed from 'client' to 'c'. The rescue block, however, for Errno::ECONNABORTED continued to try to close 'client', rescuing ALL errors from that call and just returning nil. The simple fix, then, was to rename the 'c' variable to the more descriptive 'client', which means that the Errno::ECONNABORTED rescue will actually close the client.

We can see the old variable here

https://github.com/puma/puma/blob/000deba3c186532b62bac80d77ea9b053491dd00/lib/puma/server.rb#L239-248

…t in #handle_servers was changed from 'client' to 'c'. The rescue block, however, for Errno::ECONNABORTED continued to try to close 'client', rescuing ALL errors from that call and just returning nil. The simple fix, then, was to rename the 'c' variable to the more descriptive 'client', which means that the Errno::ECONNABORTED rescue will actually close the client.
evanphx added a commit that referenced this pull request Apr 12, 2014
Somewhere along the way, the variable which held the new Client object i...
@evanphx evanphx merged commit e310422 into puma:master Apr 12, 2014
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.

None yet

2 participants