I am using the stable 2.x one. I have set the timeout to 3 secs now. Lets
see how that goes

Snehal


On Sun, Jul 11, 2010 at 10:33 PM, dormando <[email protected]> wrote:

>
>
> On Sun, 11 Jul 2010, Snehal Shinde wrote:
>
> > Yes Jay is right. My server and client config are in sync. The problem
> > is only intermittent and so i felt maybe increasing the default
> > timeout might help. Any idea how i can increase the default memcache
> > timeout for the php client Memcache?
>
> I forget offhand :/ if it's not listed in pecl.php.net/memcache then
> you're a little SOL.
>
> Are you on version 3.x or version 2.x? (I might've missed this from
> earlier in the thread). I've heard rumors of random connect failures in
> 3.x.
>
> Also, your network might be experiencing a really low rate of packet loss.
> If you can change the timeout, set it to 2 seconds for a while.. if you
> still get random timeouts, set it to 4 seconds (higher than the SYN
> retry). If it never fails or almost never fails at 4 seconds then you have
> some packet loss that might be fixable.
>
> It should never take memcached longer than a few ms to set up a new
> connection, so anything worse than that usually means the box is hosed
> (swapping) or the network is hosed (maxed, packet loss, etc).
>

Reply via email to