I also invoke memcached_quit_server() in a similar fashion to how Nikhils describes when I notice there's a dead server. +1 if folks are thinking about a public API.
Cheers, Steve On Apr 25, 11:24 pm, Nikhils <[email protected]> wrote: > Hi, > > > > > On Apr 23, 2009, at 11:52 PM, Nikhils wrote: > > > If I invoke memcached_quit_server API on a specific server, does it mean > >> that keys belonging to that server will be invalidated after this call? Or > >> if I reconnect, will I be able to re-fetch the earlier keys? > >> I am assuming its the latter, but some feedback will be appreciated. > > > memcached_quit_server() is an internal call, and is not exported for usage. > > > What are you wanting to do? > > In case of a dead memcached server, when it is restarted the earlier server > handle on the client side will basically have a stale socket pointer > (ptr->fd). I need an API that can be invoked on the client side to > invalidate this and allow for a reconnection to this server. > > I do not see any other API which would allow me to do this. Or is there? > > Regards, > Nikhils > > > > > Cheers, > > -Brian > > > -- > > _______________________________________________________ > > Brian "Krow" Aker, brian at tangent.org > > Seattle, Washington > >http://krow.net/ <-- Me > >http://tangent.org/ <-- Software > > _______________________________________________________ > > You can't grep a dead tree.
