Skip to content

Instantly share code, notes, and snippets.

View gist:ef699b5857fc4950c921ba89228d6354
document.getElementById("BuildIndex11").parentNode.removeChild(document.getElementById("BuildIndex11"));
document.getElementById("BuildIndex10").style.width="auto";
document.getElementById("BuildIndex10").childNodes[0].style.height="800px";
View gist:39680fbb71f2f7b170b9819cab63ffd5
mongo_ruby_driver_mongo__mongodb_version~4.0_topology~standalone_auth_and_ssl~noauth_and_nossl_ruby~ruby_2.5_patch_1c9aa74e8ffbc4437ceb84acf88651fbdf1294a8_5c37970b32f4170313613bab_19_01_10_19_03_40
View mongoid-read-preference.diff
diff --git a/lib/mongoid/persistence_context.rb b/lib/mongoid/persistence_context.rb
index e7c77ed626..9efa479589 100644
--- a/lib/mongoid/persistence_context.rb
+++ b/lib/mongoid/persistence_context.rb
@@ -150,9 +150,15 @@ def __evaluate__(name)
end
def client_options
- @client_options ||= options.select do |k, v|
- Mongo::Client::VALID_OPTIONS.include?(k.to_sym)
View jruby-ssl-sni.patch
diff --git a/lib/mongo/socket/ssl.rb b/lib/mongo/socket/ssl.rb
index a1ef29bc..1b8fd287 100644
--- a/lib/mongo/socket/ssl.rb
+++ b/lib/mongo/socket/ssl.rb
@@ -56,7 +56,7 @@ module Mongo
Timeout.timeout(connect_timeout, Error::SocketTimeoutError) do
handle_errors { @tcp_socket.connect(::Socket.pack_sockaddr_in(port, host)) }
@socket = OpenSSL::SSL::SSLSocket.new(@tcp_socket, context)
- @socket.hostname = @host_name unless BSON::Environment.jruby?
+ @socket.hostname = @host_name