lib/mongo/socket/unix.rb in mongo-2.4.2 vs lib/mongo/socket/unix.rb in mongo-2.4.3

- old
+ new

@@ -1,6 +1,6 @@ -# Copyright (C) 2014-2016 MongoDB, Inc. +# Copyright (C) 2014-2017 MongoDB, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # @@ -21,11 +21,11 @@ class Unix < Socket # @return [ String ] path The path to connect to. attr_reader :path - # @return [ Float ] timeout The connection timeout. + # @return [ Float ] timeout The socket timeout. attr_reader :timeout # Establishes a socket connection. # # @example Connect the socket. @@ -35,10 +35,10 @@ # internally. # # @return [ Unix ] The connected socket instance. # # @since 2.0.0 - def connect! + def connect!(connect_timeout = nil) self end # Initializes a new Unix socket. #