Re: php memcache timeout
| From: | Alexey Zakhlestin | Date: | Thu, 17 Apr 2008 06:52:32 +0000 |
| Subject: | Re: php memcache timeout | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-5382@lists.php.net to get a copy of this message | ||
On 4/17/08, Dmitriy Tochilnik <dmitri@adbrite.com> wrote:
> Any suggestions how to change php memcache timeout in
> php5-pecl-memcache to less then a sec ( 250ms)?
looks, like it will be problematic, at least
it uses "long" to specify timeout, so, no fractions are possible
though, the actual timeout is applied in _mmc_open function, using
"struct timeval" which has "tv_usec" field
so, looks like you have to do the following:
1) change "struct mmc" to use "struct timeval" instead of long
2) change initializers to properly set it's components
--
Alexey Zakhlestin
http://blog.milkfarmsoft.com/