We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9af18bb commit d58d7a8Copy full SHA for d58d7a8
src/mongoc/mongoc-client-pool.c
@@ -132,6 +132,12 @@ mongoc_client_pool_new (const mongoc_uri_t *uri)
132
BSON_ASSERT (mongoc_client_pool_set_appname (pool, appname));
133
}
134
135
+#ifdef MONGOC_ENABLE_SSL
136
+ if (mongoc_uri_get_ssl (pool->uri)) {
137
+ /* sets use_ssl = true */
138
+ mongoc_client_pool_set_ssl_opts (pool, mongoc_ssl_opt_get_default ());
139
+ }
140
+#endif
141
mongoc_counter_client_pools_active_inc ();
142
143
RETURN (pool);
0 commit comments