Mercurial > hg > nginx-tests
comparison memcached_keepalive_stale.t @ 587:c0b4ae82fd9d
Tests: adjusted memcached test timeouts.
Raised Cache::Memcached connect_timeout from the default value.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 25 May 2015 14:21:18 +0300 |
parents | 1a73389a19c4 |
children | 6c0a5903d0ae |
comparison
equal
deleted
inserted
replaced
586:ef2b435c1048 | 587:c0b4ae82fd9d |
---|---|
85 $t->waitforsocket('127.0.0.1:8081') | 85 $t->waitforsocket('127.0.0.1:8081') |
86 or die "Unable to start memcached"; | 86 or die "Unable to start memcached"; |
87 | 87 |
88 ############################################################################### | 88 ############################################################################### |
89 | 89 |
90 my $memd1 = Cache::Memcached->new(servers => [ '127.0.0.1:8081' ]); | 90 my $memd1 = Cache::Memcached->new(servers => [ '127.0.0.1:8081' ], |
91 connect_timeout => 1.0); | |
91 | 92 |
92 # It's possible that stale events occur, i.e. read event handler called | 93 # It's possible that stale events occur, i.e. read event handler called |
93 # for just saved upstream connection without any data available for | 94 # for just saved upstream connection without any data available for |
94 # read. We shouldn't close upstream connection in such situation. | 95 # read. We shouldn't close upstream connection in such situation. |
95 # | 96 # |