"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "t/maxconns.t" between
memcached-1.6.13.tar.gz and memcached-1.6.14.tar.gz

About: memcached is a high-performance, distributed memory object caching system, generic in nature, but originally intended for use in speeding up dynamic web applications by alleviating database load.

maxconns.t  (memcached-1.6.13):maxconns.t  (memcached-1.6.14)
skipping to change at line 47 skipping to change at line 47
my $buffer = ""; my $buffer = "";
my $length = 31; my $length = 31;
my $res = recv($sock, $buffer, $length, 0); my $res = recv($sock, $buffer, $length, 0);
if (not $buffer eq '') { if (not $buffer eq '') {
is($buffer, "ERROR Too many open connections", "Got expected respo nse from the server"); is($buffer, "ERROR Too many open connections", "Got expected respo nse from the server");
} }
} }
} }
} }
my $failed = 1;
for (1 .. 5) {
$stats = mem_stats($stat_sock);
if ($stats->{rejected_connections} != 0) {
$failed = 0;
last;
}
sleep 1;
}
is($failed, 0, "rejected connections were observed.");
for my $s (@sockets) { for my $s (@sockets) {
$s->close(); $s->close();
} }
$stats = mem_stats($stat_sock);
cmp_ok($stats->{rejected_connections}, '>', '1', 'rejected connections recor
ded');
$server->stop; $server->stop;
$stat_sock->close(); $stat_sock->close();
} }
done_testing(); done_testing();
END { END {
unlink $ext_path if $ext_path; unlink $ext_path if $ext_path;
} }
 End of changes. 2 change blocks. 
3 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)