watcher.t (memcached-1.6.13) | : | watcher.t (memcached-1.6.14) | ||
---|---|---|---|---|
skipping to change at line 82 | skipping to change at line 82 | |||
} | } | |||
} | } | |||
# test connection events | # test connection events | |||
{ | { | |||
# start a dedicated server so that connection close events from previous | # start a dedicated server so that connection close events from previous | |||
# tests don't leak into this one due to races. | # tests don't leak into this one due to races. | |||
my $conn_server = new_memcached('-m 60 -o watcher_logbuf_size=8'); | my $conn_server = new_memcached('-m 60 -o watcher_logbuf_size=8'); | |||
my $conn_watcher = $conn_server->new_sock; | my $conn_watcher = $conn_server->new_sock; | |||
sleep 1; | ||||
print $conn_watcher "watch connevents\n"; | print $conn_watcher "watch connevents\n"; | |||
$res = <$conn_watcher>; | $res = <$conn_watcher>; | |||
is($res, "OK\r\n", 'connevents watcher enabled'); | is($res, "OK\r\n", 'connevents watcher enabled'); | |||
# normal close | # normal close | |||
my $conn_client = $conn_server->new_sock; | my $conn_client = $conn_server->new_sock; | |||
print $conn_client "version\r\n"; | print $conn_client "version\r\n"; | |||
$res = <$conn_client>; | $res = <$conn_client>; | |||
print $conn_client "quit\r\n"; | print $conn_client "quit\r\n"; | |||
$res = <$conn_watcher>; | $res = <$conn_watcher>; | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 1 lines changed or added |