jsxiao / spymemcached

Automatically exported from code.google.com/p/spymemcached
0 stars 0 forks source link

ConnectionObserver does not get lostConnection message #55

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What version of the product are you using? On what operating system?
OSX 10.5, memcached-2.3

I attached the Observer to my memcachedClient. When I kill memcached, I
never get lostConnection callback. Also, connectionEstablished seem to only
work when you create a new MemCachedClient to create a connection. For an
existing MemCachedClient instance, when a  reconnect happens, it never gets
a connectionEstablished call back.

Original issue reported on code.google.com by gargv...@gmail.com on 20 Mar 2009 at 4:57

GoogleCodeExporter commented 8 years ago
Wow.  That sounds pretty broken.

My unit tests don't directly control memcached, so these cases aren't covered, 
but I
thought it had been tested enough.  Perhaps I need to rethink testing.

Thank you for the report.

Original comment by dsalli...@gmail.com on 20 Mar 2009 at 5:33

GoogleCodeExporter commented 8 years ago
I've done some testing around this.  Please let me know if this is better.

The one thing that is a bit strange here is that it doesn't detect a failure 
without
traffic actually flowing.  That is, I don't get signal on idle connections.

Original comment by dsalli...@gmail.com on 21 Mar 2009 at 9:01

Attachments: