2010-09-09 19:58:51 +00:00
|
|
|
require './test/test_helper'
|
2009-09-11 16:12:24 +00:00
|
|
|
require 'logger'
|
|
|
|
require 'stringio'
|
2010-01-20 17:40:16 +00:00
|
|
|
require 'thread'
|
2009-01-16 14:52:31 +00:00
|
|
|
|
2009-08-20 22:48:09 +00:00
|
|
|
class TestConnection < Test::Unit::TestCase
|
2009-01-16 14:52:31 +00:00
|
|
|
|
2009-08-20 14:50:48 +00:00
|
|
|
include Mongo
|
2010-04-05 15:07:01 +00:00
|
|
|
include BSON
|
2009-01-16 14:52:31 +00:00
|
|
|
|
|
|
|
def setup
|
2010-10-21 17:32:47 +00:00
|
|
|
@conn = standard_connection
|
2009-01-16 14:52:31 +00:00
|
|
|
end
|
|
|
|
|
2009-03-13 21:09:19 +00:00
|
|
|
def teardown
|
2011-08-25 18:57:24 +00:00
|
|
|
@conn.close
|
2009-03-13 21:09:19 +00:00
|
|
|
end
|
|
|
|
|
2010-11-30 17:36:45 +00:00
|
|
|
def test_connection_failure
|
|
|
|
assert_raise Mongo::ConnectionFailure do
|
|
|
|
Mongo::Connection.new('localhost', 27347)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2011-09-19 16:05:03 +00:00
|
|
|
# def test_connection_timeout
|
|
|
|
# passed = false
|
|
|
|
# begin
|
|
|
|
# t0 = Time.now
|
|
|
|
# Mongo::Connection.new('foo.bar', 27017, :connect_timeout => 3)
|
|
|
|
# rescue OperationTimeout
|
|
|
|
# passed = true
|
|
|
|
# t1 = Time.now
|
|
|
|
# end
|
2011-06-15 18:20:11 +00:00
|
|
|
|
2011-09-19 16:05:03 +00:00
|
|
|
# assert passed
|
|
|
|
# assert t1 - t0 < 4
|
|
|
|
# end
|
2011-06-15 18:20:11 +00:00
|
|
|
|
2011-03-23 20:34:42 +00:00
|
|
|
def test_host_port_accessors
|
|
|
|
assert_equal @conn.host, TEST_HOST
|
|
|
|
assert_equal @conn.port, TEST_PORT
|
|
|
|
end
|
|
|
|
|
2009-10-26 18:54:33 +00:00
|
|
|
def test_server_info
|
2010-10-21 17:32:47 +00:00
|
|
|
server_info = @conn.server_info
|
2009-10-26 20:41:17 +00:00
|
|
|
assert server_info.keys.include?("version")
|
2010-06-01 02:52:03 +00:00
|
|
|
assert Mongo::Support.ok?(server_info)
|
2009-10-26 18:54:33 +00:00
|
|
|
end
|
|
|
|
|
2011-03-03 19:22:32 +00:00
|
|
|
def test_ping
|
|
|
|
ping = @conn.ping
|
|
|
|
assert ping['ok']
|
|
|
|
end
|
|
|
|
|
2010-06-12 14:11:29 +00:00
|
|
|
def test_connection_uri
|
2010-10-13 21:09:23 +00:00
|
|
|
con = Connection.from_uri("mongodb://#{host_port}")
|
2010-11-16 20:43:59 +00:00
|
|
|
assert_equal mongo_host, con.primary_pool.host
|
|
|
|
assert_equal mongo_port, con.primary_pool.port
|
2010-06-12 14:11:29 +00:00
|
|
|
end
|
|
|
|
|
2009-10-26 18:54:33 +00:00
|
|
|
def test_server_version
|
2011-02-20 16:19:14 +00:00
|
|
|
assert_match(/\d\.\d+(\.\d+)?/, @conn.server_version.to_s)
|
2009-10-26 18:54:33 +00:00
|
|
|
end
|
|
|
|
|
2009-08-13 20:26:51 +00:00
|
|
|
def test_invalid_database_names
|
2010-10-21 17:32:47 +00:00
|
|
|
assert_raise TypeError do @conn.db(4) end
|
2009-08-13 20:26:51 +00:00
|
|
|
|
2010-10-21 17:32:47 +00:00
|
|
|
assert_raise Mongo::InvalidNSName do @conn.db('') end
|
|
|
|
assert_raise Mongo::InvalidNSName do @conn.db('te$t') end
|
|
|
|
assert_raise Mongo::InvalidNSName do @conn.db('te.t') end
|
|
|
|
assert_raise Mongo::InvalidNSName do @conn.db('te\\t') end
|
|
|
|
assert_raise Mongo::InvalidNSName do @conn.db('te/t') end
|
|
|
|
assert_raise Mongo::InvalidNSName do @conn.db('te st') end
|
2009-08-13 20:26:51 +00:00
|
|
|
end
|
|
|
|
|
2010-10-21 17:27:57 +00:00
|
|
|
def test_options_passed_to_db
|
|
|
|
@pk_mock = Object.new
|
2010-10-21 17:32:47 +00:00
|
|
|
db = @conn.db('test', :pk => @pk_mock, :strict => true)
|
2010-10-21 17:27:57 +00:00
|
|
|
assert_equal @pk_mock, db.pk_factory
|
|
|
|
assert db.strict?
|
|
|
|
end
|
|
|
|
|
2009-01-16 14:52:31 +00:00
|
|
|
def test_database_info
|
2010-10-21 17:32:47 +00:00
|
|
|
@conn.drop_database(MONGO_TEST_DB)
|
|
|
|
@conn.db(MONGO_TEST_DB).collection('info-test').insert('a' => 1)
|
2009-01-28 19:21:23 +00:00
|
|
|
|
2010-10-21 17:32:47 +00:00
|
|
|
info = @conn.database_info
|
2009-01-16 14:52:31 +00:00
|
|
|
assert_not_nil info
|
|
|
|
assert_kind_of Hash, info
|
2010-04-05 19:48:35 +00:00
|
|
|
assert_not_nil info[MONGO_TEST_DB]
|
|
|
|
assert info[MONGO_TEST_DB] > 0
|
2009-01-28 19:21:23 +00:00
|
|
|
|
2010-10-21 17:32:47 +00:00
|
|
|
@conn.drop_database(MONGO_TEST_DB)
|
2009-01-16 14:52:31 +00:00
|
|
|
end
|
|
|
|
|
2009-11-04 16:57:03 +00:00
|
|
|
def test_copy_database
|
2010-10-21 17:32:47 +00:00
|
|
|
@conn.db('old').collection('copy-test').insert('a' => 1)
|
|
|
|
@conn.copy_database('old', 'new', host_port)
|
|
|
|
old_object = @conn.db('old').collection('copy-test').find.next_document
|
|
|
|
new_object = @conn.db('new').collection('copy-test').find.next_document
|
2009-11-04 16:57:03 +00:00
|
|
|
assert_equal old_object, new_object
|
2010-10-21 17:32:47 +00:00
|
|
|
@conn.drop_database('old')
|
|
|
|
@conn.drop_database('new')
|
2010-03-16 17:56:30 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def test_copy_database_with_auth
|
2010-10-21 17:32:47 +00:00
|
|
|
@conn.db('old').collection('copy-test').insert('a' => 1)
|
|
|
|
@conn.db('old').add_user('bob', 'secret')
|
2010-03-16 17:56:30 +00:00
|
|
|
|
|
|
|
assert_raise Mongo::OperationFailure do
|
2010-10-21 17:32:47 +00:00
|
|
|
@conn.copy_database('old', 'new', host_port, 'bob', 'badpassword')
|
2010-03-16 17:56:30 +00:00
|
|
|
end
|
|
|
|
|
2010-10-21 17:32:47 +00:00
|
|
|
result = @conn.copy_database('old', 'new', host_port, 'bob', 'secret')
|
2010-06-01 02:52:03 +00:00
|
|
|
assert Mongo::Support.ok?(result)
|
2010-03-16 17:56:30 +00:00
|
|
|
|
2010-10-21 17:32:47 +00:00
|
|
|
@conn.drop_database('old')
|
|
|
|
@conn.drop_database('new')
|
2009-11-04 16:57:03 +00:00
|
|
|
end
|
|
|
|
|
2009-01-16 14:52:31 +00:00
|
|
|
def test_database_names
|
2010-10-21 17:32:47 +00:00
|
|
|
@conn.drop_database(MONGO_TEST_DB)
|
|
|
|
@conn.db(MONGO_TEST_DB).collection('info-test').insert('a' => 1)
|
2009-01-28 19:21:23 +00:00
|
|
|
|
2010-10-21 17:32:47 +00:00
|
|
|
names = @conn.database_names
|
2009-01-16 14:52:31 +00:00
|
|
|
assert_not_nil names
|
|
|
|
assert_kind_of Array, names
|
|
|
|
assert names.length >= 1
|
2010-04-05 19:48:35 +00:00
|
|
|
assert names.include?(MONGO_TEST_DB)
|
2009-01-16 14:52:31 +00:00
|
|
|
end
|
|
|
|
|
2009-09-11 16:12:24 +00:00
|
|
|
def test_logging
|
|
|
|
output = StringIO.new
|
|
|
|
logger = Logger.new(output)
|
|
|
|
logger.level = Logger::DEBUG
|
2010-10-13 21:09:23 +00:00
|
|
|
connection = standard_connection(:logger => logger).db(MONGO_TEST_DB)
|
2010-03-24 05:33:53 +00:00
|
|
|
assert output.string.include?("admin['$cmd'].find")
|
2009-09-11 16:12:24 +00:00
|
|
|
end
|
2010-02-25 19:58:32 +00:00
|
|
|
|
2012-02-03 17:02:14 +00:00
|
|
|
def test_logging_duration
|
|
|
|
output = StringIO.new
|
|
|
|
logger = Logger.new(output)
|
|
|
|
logger.level = Logger::DEBUG
|
|
|
|
connection = standard_connection(:logger => logger, :log_duration => true).db(MONGO_TEST_DB)
|
|
|
|
assert output.string.index(/\(0.\d+s\)/)
|
|
|
|
assert output.string.include?("admin['$cmd'].find")
|
|
|
|
end
|
|
|
|
|
2009-10-07 23:39:36 +00:00
|
|
|
def test_connection_logger
|
|
|
|
output = StringIO.new
|
|
|
|
logger = Logger.new(output)
|
|
|
|
logger.level = Logger::DEBUG
|
2010-10-13 21:09:23 +00:00
|
|
|
connection = standard_connection(:logger => logger)
|
2009-10-07 23:39:36 +00:00
|
|
|
assert_equal logger, connection.logger
|
2010-10-13 21:09:23 +00:00
|
|
|
|
2009-10-07 23:39:36 +00:00
|
|
|
connection.logger.debug 'testing'
|
|
|
|
assert output.string.include?('testing')
|
|
|
|
end
|
2009-09-11 16:12:24 +00:00
|
|
|
|
2012-02-03 16:29:30 +00:00
|
|
|
def test_connection_log_duration_with_logger
|
|
|
|
output = StringIO.new
|
|
|
|
logger = Logger.new(output)
|
|
|
|
logger.level = Logger::DEBUG
|
|
|
|
connection = standard_connection(:logger => logger, :log_duration => true)
|
|
|
|
assert logger, connection.logger
|
|
|
|
assert connection.log_duration
|
|
|
|
end
|
|
|
|
|
|
|
|
def test_connection_log_duration_without_logger
|
|
|
|
connection = standard_connection(:log_duration => true)
|
|
|
|
assert_nil connection.logger
|
|
|
|
assert !connection.log_duration
|
|
|
|
end
|
|
|
|
|
2009-01-20 14:21:19 +00:00
|
|
|
def test_drop_database
|
2010-10-21 17:32:47 +00:00
|
|
|
db = @conn.db('ruby-mongo-will-be-deleted')
|
2009-01-20 14:21:19 +00:00
|
|
|
coll = db.collection('temp')
|
2009-10-20 15:31:07 +00:00
|
|
|
coll.remove
|
2009-01-20 14:21:19 +00:00
|
|
|
coll.insert(:name => 'temp')
|
|
|
|
assert_equal 1, coll.count()
|
2010-10-21 17:32:47 +00:00
|
|
|
assert @conn.database_names.include?('ruby-mongo-will-be-deleted')
|
2009-01-20 14:21:19 +00:00
|
|
|
|
2010-10-21 17:32:47 +00:00
|
|
|
@conn.drop_database('ruby-mongo-will-be-deleted')
|
|
|
|
assert !@conn.database_names.include?('ruby-mongo-will-be-deleted')
|
2009-01-20 14:21:19 +00:00
|
|
|
end
|
|
|
|
|
2009-11-23 20:20:05 +00:00
|
|
|
def test_nodes
|
2011-08-25 18:57:24 +00:00
|
|
|
conn = Connection.multi([['foo', 27017], ['bar', 27018]], :connect => false)
|
|
|
|
nodes = conn.nodes
|
2009-11-23 20:20:05 +00:00
|
|
|
assert_equal 2, nodes.length
|
2010-04-07 21:10:28 +00:00
|
|
|
assert_equal ['foo', 27017], nodes[0]
|
|
|
|
assert_equal ['bar', 27018], nodes[1]
|
2009-01-23 18:30:59 +00:00
|
|
|
end
|
2010-01-20 17:40:16 +00:00
|
|
|
|
2010-09-28 16:15:45 +00:00
|
|
|
def test_fsync_lock
|
2010-10-21 17:32:47 +00:00
|
|
|
assert !@conn.locked?
|
|
|
|
@conn.lock!
|
|
|
|
assert @conn.locked?
|
|
|
|
assert_equal 1, @conn['admin']['$cmd.sys.inprog'].find_one['fsyncLock'], "Not fsync-locked"
|
2011-03-29 14:39:01 +00:00
|
|
|
assert_match(/unlock/, @conn.unlock!['info'])
|
2010-09-28 16:15:45 +00:00
|
|
|
unlocked = false
|
|
|
|
counter = 0
|
|
|
|
while counter < 5
|
2010-10-21 17:32:47 +00:00
|
|
|
if @conn['admin']['$cmd.sys.inprog'].find_one['fsyncLock'].nil?
|
2010-09-28 16:15:45 +00:00
|
|
|
unlocked = true
|
|
|
|
break
|
|
|
|
else
|
|
|
|
sleep(1)
|
|
|
|
counter += 1
|
|
|
|
end
|
|
|
|
end
|
2010-10-21 17:32:47 +00:00
|
|
|
assert !@conn.locked?
|
2010-09-28 16:15:45 +00:00
|
|
|
assert unlocked, "mongod failed to unlock"
|
|
|
|
end
|
|
|
|
|
2010-12-29 23:06:31 +00:00
|
|
|
def test_max_bson_size_value
|
2011-08-25 18:57:24 +00:00
|
|
|
conn = standard_connection(:connect => false)
|
|
|
|
|
|
|
|
admin_db = Object.new
|
|
|
|
admin_db.expects(:command).returns({'ok' => 1, 'ismaster' => 1, 'maxBsonObjectSize' => 15_000_000})
|
|
|
|
conn.expects(:[]).with('admin').returns(admin_db)
|
|
|
|
conn.connect
|
|
|
|
assert_equal 15_000_000, conn.max_bson_size
|
|
|
|
|
2010-12-29 23:06:31 +00:00
|
|
|
conn = standard_connection
|
2011-01-18 21:20:51 +00:00
|
|
|
if conn.server_version > "1.7.2"
|
2010-12-29 23:06:31 +00:00
|
|
|
assert_equal conn['admin'].command({:ismaster => 1})['maxBsonObjectSize'], conn.max_bson_size
|
|
|
|
end
|
|
|
|
|
|
|
|
conn.connect
|
2011-08-25 18:57:24 +00:00
|
|
|
doc = {'n' => 'a' * (conn.max_bson_size)}
|
2010-12-29 23:06:31 +00:00
|
|
|
assert_raise InvalidDocument do
|
2011-08-25 18:57:24 +00:00
|
|
|
assert BSON::BSON_CODER.serialize(doc, false, true, @conn.max_bson_size)
|
2010-12-29 23:06:31 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2011-08-25 18:57:24 +00:00
|
|
|
def test_max_bson_size_with_no_reported_max_size
|
2010-12-29 23:06:31 +00:00
|
|
|
conn = standard_connection(:connect => false)
|
|
|
|
|
|
|
|
admin_db = Object.new
|
2011-08-25 18:57:24 +00:00
|
|
|
admin_db.expects(:command).returns({'ok' => 1, 'ismaster' => 1})
|
|
|
|
conn.expects(:[]).with('admin').returns(admin_db)
|
2010-12-29 23:06:31 +00:00
|
|
|
|
|
|
|
conn.connect
|
|
|
|
assert_equal Mongo::DEFAULT_MAX_BSON_SIZE, BSON::BSON_CODER.max_bson_size
|
|
|
|
end
|
|
|
|
|
2011-03-03 10:32:10 +00:00
|
|
|
def test_connection_activity
|
|
|
|
conn = standard_connection
|
|
|
|
assert conn.active?
|
|
|
|
|
|
|
|
conn.primary_pool.close
|
|
|
|
assert !conn.active?
|
|
|
|
|
|
|
|
# Simulate a dropped connection.
|
|
|
|
dropped_socket = Mocha::Mock.new
|
|
|
|
dropped_socket.stubs(:read).raises(Errno::ECONNRESET)
|
|
|
|
dropped_socket.stubs(:send).raises(Errno::ECONNRESET)
|
|
|
|
dropped_socket.stub_everything
|
|
|
|
|
|
|
|
conn.primary_pool.host = 'localhost'
|
|
|
|
conn.primary_pool.port = Mongo::Connection::DEFAULT_PORT
|
2011-03-18 02:14:31 +00:00
|
|
|
conn.primary_pool.instance_variable_set("@pids", {dropped_socket => Process.pid})
|
2011-03-03 10:32:10 +00:00
|
|
|
conn.primary_pool.instance_variable_set("@sockets", [dropped_socket])
|
|
|
|
|
|
|
|
assert !conn.active?
|
|
|
|
end
|
|
|
|
|
2010-02-25 19:58:32 +00:00
|
|
|
context "Saved authentications" do
|
|
|
|
setup do
|
2010-10-13 21:09:23 +00:00
|
|
|
@conn = standard_connection
|
2010-02-25 19:58:32 +00:00
|
|
|
@auth = {'db_name' => 'test', 'username' => 'bob', 'password' => 'secret'}
|
|
|
|
@conn.add_auth(@auth['db_name'], @auth['username'], @auth['password'])
|
|
|
|
end
|
|
|
|
|
2011-08-25 18:57:24 +00:00
|
|
|
teardown do
|
|
|
|
@conn.clear_auths
|
|
|
|
end
|
|
|
|
|
2010-02-25 19:58:32 +00:00
|
|
|
should "save the authentication" do
|
|
|
|
assert_equal @auth, @conn.auths[0]
|
|
|
|
end
|
|
|
|
|
|
|
|
should "replace the auth if given a new auth for the same db" do
|
|
|
|
auth = {'db_name' => 'test', 'username' => 'mickey', 'password' => 'm0u53'}
|
|
|
|
@conn.add_auth(auth['db_name'], auth['username'], auth['password'])
|
|
|
|
assert_equal 1, @conn.auths.length
|
|
|
|
assert_equal auth, @conn.auths[0]
|
|
|
|
end
|
|
|
|
|
|
|
|
should "remove auths by database" do
|
|
|
|
@conn.remove_auth('non-existent database')
|
|
|
|
assert_equal 1, @conn.auths.length
|
|
|
|
|
|
|
|
@conn.remove_auth('test')
|
|
|
|
assert_equal 0, @conn.auths.length
|
|
|
|
end
|
|
|
|
|
|
|
|
should "remove all auths" do
|
|
|
|
@conn.clear_auths
|
|
|
|
assert_equal 0, @conn.auths.length
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2011-12-02 20:37:05 +00:00
|
|
|
context "Socket pools" do
|
|
|
|
context "checking out writers" do
|
|
|
|
setup do
|
|
|
|
@con = standard_connection(:pool_size => 10, :timeout => 10)
|
|
|
|
@coll = @con[MONGO_TEST_DB]['test-connection-exceptions']
|
|
|
|
end
|
|
|
|
|
|
|
|
should "close the connection on send_message for major exceptions" do
|
|
|
|
@con.expects(:checkout_writer).raises(SystemStackError)
|
|
|
|
@con.expects(:close)
|
|
|
|
begin
|
|
|
|
@coll.insert({:foo => "bar"})
|
|
|
|
rescue SystemStackError
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
should "close the connection on send_message_with_safe_check for major exceptions" do
|
|
|
|
@con.expects(:checkout_writer).raises(SystemStackError)
|
|
|
|
@con.expects(:close)
|
|
|
|
begin
|
|
|
|
@coll.insert({:foo => "bar"}, :safe => true)
|
|
|
|
rescue SystemStackError
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
should "close the connection on receive_message for major exceptions" do
|
|
|
|
@con.expects(:checkout_writer).raises(SystemStackError)
|
|
|
|
@con.expects(:close)
|
|
|
|
begin
|
|
|
|
@coll.find.next
|
|
|
|
rescue SystemStackError
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2010-01-20 17:40:16 +00:00
|
|
|
context "Connection exceptions" do
|
|
|
|
setup do
|
2010-10-21 17:32:47 +00:00
|
|
|
@con = standard_connection(:pool_size => 10, :timeout => 10)
|
|
|
|
@coll = @con[MONGO_TEST_DB]['test-connection-exceptions']
|
2010-01-20 17:40:16 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
should "release connection if an exception is raised on send_message" do
|
2010-10-21 17:32:47 +00:00
|
|
|
@con.stubs(:send_message_on_socket).raises(ConnectionFailure)
|
2010-11-16 20:43:59 +00:00
|
|
|
assert_equal 0, @con.primary_pool.checked_out.size
|
2010-01-20 17:40:16 +00:00
|
|
|
assert_raise ConnectionFailure do
|
|
|
|
@coll.insert({:test => "insert"})
|
|
|
|
end
|
2010-11-16 20:43:59 +00:00
|
|
|
assert_equal 0, @con.primary_pool.checked_out.size
|
2010-01-20 17:40:16 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
should "release connection if an exception is raised on send_with_safe_check" do
|
2010-10-21 17:32:47 +00:00
|
|
|
@con.stubs(:receive).raises(ConnectionFailure)
|
2010-11-16 20:43:59 +00:00
|
|
|
assert_equal 0, @con.primary_pool.checked_out.size
|
2010-01-20 17:40:16 +00:00
|
|
|
assert_raise ConnectionFailure do
|
|
|
|
@coll.insert({:test => "insert"}, :safe => true)
|
|
|
|
end
|
2010-11-16 20:43:59 +00:00
|
|
|
assert_equal 0, @con.primary_pool.checked_out.size
|
2010-01-20 17:40:16 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
should "release connection if an exception is raised on receive_message" do
|
2010-10-21 17:32:47 +00:00
|
|
|
@con.stubs(:receive).raises(ConnectionFailure)
|
2010-11-16 20:43:59 +00:00
|
|
|
assert_equal 0, @con.primary_pool.checked_out.size
|
2010-01-20 17:40:16 +00:00
|
|
|
assert_raise ConnectionFailure do
|
|
|
|
@coll.find.to_a
|
|
|
|
end
|
2010-11-16 20:43:59 +00:00
|
|
|
assert_equal 0, @con.primary_pool.checked_out.size
|
2010-01-20 17:40:16 +00:00
|
|
|
end
|
2011-02-23 15:29:44 +00:00
|
|
|
|
|
|
|
should "show a proper exception message if an IOError is raised while closing a socket" do
|
|
|
|
fake_socket = Mocha::Mock.new
|
|
|
|
fake_socket.stubs(:close).raises(IOError.new)
|
|
|
|
fake_socket.stub_everything
|
2011-08-25 18:57:24 +00:00
|
|
|
TCPSocket.stubs(:new).returns(fake_socket)
|
2011-02-23 15:29:44 +00:00
|
|
|
|
|
|
|
@con.primary_pool.checkout_new_socket
|
2011-10-17 18:41:09 +00:00
|
|
|
assert @con.primary_pool.close
|
2011-02-23 15:29:44 +00:00
|
|
|
end
|
2010-01-20 17:40:16 +00:00
|
|
|
end
|
2009-08-20 22:48:09 +00:00
|
|
|
end
|