jlorenzen / spymemcached

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

Binary mode causes timeout while ASCII mode works. #248

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
spymemcached v2.8.1
Win 7 64bit
Java 1.6

The code is practically copypasted from examples page:

memcache=new MemcachedClient(
    new InetSocketAddress("localhost", 11211));

Works, but

memcache=new MemcachedClient(
        new BinaryConnectionFactory(),
        AddrUtil.getAddresses("localhost:11211"));  

Throws an exception when I try to call Get:

Exception in thread "Thread-1" net.spy.memcached.OperationTimeoutException: 
Timeout waiting for value
    at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:1003)
    at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:1018)

Caused by: net.spy.memcached.internal.CheckedOperationTimeoutException: Timed 
out waiting for operation - failing node: localhost/127.0.0.1:11211
    at net.spy.memcached.internal.OperationFuture.get(OperationFuture.java:93)
    at net.spy.memcached.internal.GetFuture.get(GetFuture.java:62)
    at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:997)
    ... 4 more

Original issue reported on code.google.com by notusing...@gmail.com on 23 Apr 2012 at 3:50

GoogleCodeExporter commented 8 years ago
Problem solved - turns out I was using and old version of memcached

Original comment by notusing...@gmail.com on 24 Apr 2012 at 12:08

GoogleCodeExporter commented 8 years ago
Thanks for the followup.

Original comment by ingen...@gmail.com on 26 Apr 2012 at 7:44