lib/mongo.rb in mongo-1.8.2 vs lib/mongo.rb in mongo-1.8.3.rc0

- old
+ new

@@ -1,30 +1,13 @@ -# encoding: UTF-8 -# -# -- -# Copyright (C) 2008-2012 10gen 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 -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ++ - module Mongo ASCENDING = 1 DESCENDING = -1 GEO2D = '2d' GEOHAYSTACK = 'geoHaystack' DEFAULT_MAX_BSON_SIZE = 4 * 1024 * 1024 + DEFAULT_MAX_MESSAGE_SIZE = DEFAULT_MAX_BSON_SIZE * 2 module Constants OP_REPLY = 1 OP_MSG = 1000 OP_UPDATE = 2001 @@ -60,9 +43,10 @@ require 'mongo/util/node' require 'mongo/util/pool' require 'mongo/util/pool_manager' require 'mongo/util/sharding_pool_manager' require 'mongo/util/server_version' +require 'mongo/util/socket_util' require 'mongo/util/ssl_socket' require 'mongo/util/tcp_socket' require 'mongo/util/unix_socket' require 'mongo/util/uri_parser'