Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
executable file 29 lines (20 sloc) 586 Bytes
# NOTE: This test never worked. Memcached would ignore maxconns requests lower
# than the current ulimit. Test needs to be updated.
use strict;
use warnings;
use Test::More tests => 11;
use FindBin qw($Bin);
use lib "$Bin/lib";
use MemcachedTest;
# start up a server with 10 maximum connections
my $server = new_memcached('-c 100');
my $sock = $server->sock;
my @sockets;
ok(defined($sock), 'Connection 0');
push (@sockets, $sock);
foreach my $conn (1..10) {
$sock = $server->new_sock;
ok(defined($sock), "Made connection $conn");
push(@sockets, $sock);
Jump to Line
Something went wrong with that request. Please try again.