Skip to content

Conversation

p-mongo
Copy link
Contributor

@p-mongo p-mongo commented Feb 18, 2019

No description provided.

@p-mongo p-mongo force-pushed the 1650 branch 3 times, most recently from 5eee2bd to 02d9fa2 Compare February 19, 2019 20:26
@p-mongo
Copy link
Contributor Author

p-mongo commented Feb 19, 2019

This PR also removes client key caching, with https://jira.mongodb.org/browse/RUBY-1213 reopened to reinstate it.

@p-mongo p-mongo requested a review from saghm February 19, 2019 22:05
return res
specific_address = FAMILY_MAP[info[4]].new(info[3], port, host)
socket = specific_address.socket(
connect_timeout, ssl_options, connect_timeout: connect_timeout)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why doesn't this need to call connect! anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sockets are now completely initialized by their constructors.

Copy link
Contributor

Choose a reason for hiding this comment

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

From looking at the diff, I don't see any actual changes in functionality to the constructors. Could you point out to me where the changes were made?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

https://github.com/mongodb/mongo-ruby-driver/pull/1254/files#diff-ed625ecdabf4aeff5d1a5fc04b958a3aR86 for SSL socket, https://github.com/mongodb/mongo-ruby-driver/pull/1254/files#diff-cc511f0e87683f58982606a59e0f3657R70 for TCP socket, Unix sockets were already completely initialized by their constructor and had a no-op connect! method.

Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, not sure why I missed them. Thanks!

@p-mongo p-mongo merged commit a4e5ebc into mongodb:master Feb 21, 2019
@p-mongo p-mongo deleted the 1650 branch February 21, 2019 18:46
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