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

Fix long-standing hanging SSL connection but with JavaScript #386

Merged
merged 4 commits into from
Jul 1, 2013
Merged

Conversation

brianc
Copy link
Owner

@brianc brianc commented Jun 30, 2013

Removing event emitters on the stream before upgrading to a TLS connection prevented anything from happening after that point. The connection just "hung" forever. This would prevent anyone from being able to connect to Heroku Postgres from outside of the Heroku cloud using the pure JavaScript bindings because Heroku requires SSL connections for external clients.

This was one of the few pieces of code I merged in a long time ago without having a proper integration test for it. Shame on me for that! 🙅 I've written a test to make sure it doesn't happen again. The test uses a free instance of Heroku Postgres to make sure everything works properly. Special thanks to @memosanchez for helping me track this down yesterday!

I had accepted the pull request way back without proper test coverage.
I've added test coverage & fixed this long-standing bug.
@memosanchez
Copy link
Contributor

👍

brianc added a commit that referenced this pull request Jul 1, 2013
Fix long-standing hanging SSL connection but with JavaScript
@brianc brianc merged commit 58b4f26 into master Jul 1, 2013
@brianc brianc deleted the js-ssl branch July 1, 2013 19:43
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