"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "t/idle-timeout.t" between
memcached-1.6.8.tar.gz and memcached-1.6.9.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.

idle-timeout.t  (memcached-1.6.8):idle-timeout.t  (memcached-1.6.9)
skipping to change at line 30 skipping to change at line 30
# Make sure we don't timeout when active # Make sure we don't timeout when active
for (my $i = 0; $i < 6; $i++) { for (my $i = 0; $i < 6; $i++) {
$stats = mem_stats($sock); $stats = mem_stats($sock);
isnt($stats->{version}, undef, "check active $i"); isnt($stats->{version}, undef, "check active $i");
} }
$stats = mem_stats($sock); $stats = mem_stats($sock);
is($stats->{idle_kicks}, "0", "check stats 2"); is($stats->{idle_kicks}, "0", "check stats 2");
# Make sure we do timeout when not # Make sure we do timeout when not
sleep(5); sleep(10);
mem_stats($sock); # Network activity, so socket code will see dead socket mem_stats($sock); # Network activity, so socket code will see dead socket
sleep(1); sleep(1);
# we run SSL tests over TCP; hence IO::Socket::SSL returns # we run SSL tests over TCP; hence IO::Socket::SSL returns
# '' upon disconnecting with the server. # '' upon disconnecting with the server.
if (enabled_tls_testing()) { if (enabled_tls_testing()) {
is($sock->connected(),'', "check disconnected"); is($sock->connected(),'', "check disconnected");
} else { } else {
is($sock->connected(),undef, "check disconnected"); is($sock->connected(),undef, "check disconnected");
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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