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

Close the socket connection if we don't read from it #646

Merged
merged 1 commit into from
Nov 9, 2017

Conversation

krishnasrinivas
Copy link
Contributor

fixes #640

@kannappanr
Copy link
Contributor

Travis failed

kannappanr
kannappanr previously approved these changes Nov 4, 2017
Copy link
Contributor

@kannappanr kannappanr left a comment

Choose a reason for hiding this comment

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

Tested. LGTM

kannappanr
kannappanr previously approved these changes Nov 4, 2017
Copy link
Contributor

@kannappanr kannappanr left a comment

Choose a reason for hiding this comment

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

LGTM

@krishnasrinivas krishnasrinivas force-pushed the drain-response branch 3 times, most recently from 6b93d7f to 419b580 Compare November 4, 2017 02:57
@krishnasrinivas krishnasrinivas changed the title Drain out empty response to close the connection Close the socket connection if we don't read from it Nov 6, 2017
@@ -324,6 +324,9 @@ export class Client {
if (!isString(region)) {
throw new TypeError('region should be of type "string"')
}
if ((returnResponse !== true) && (returnResponse !== false)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Would typeof returnResponse != 'boolean' be better here?

Copy link
Member

Choose a reason for hiding this comment

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

We have a functions isBoolean for this purpose.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah yes, will use that

Copy link
Contributor

@kannappanr kannappanr left a comment

Choose a reason for hiding this comment

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

LGTM. Tested

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.

statObject hangs process until socket times out
4 participants