Closed saschat closed 6 years ago
@saschat Thanks a lot
Thank you!
@killme2008 Is it possible to make a release to the Maven repo of version 2.4.3 containing this fix?
@saschat OK, i will release it today.
@killme2008 Thanks a lot!
@saschat I released 2.4.3, it may take sometime to be synced into maven central repository.
https://github.com/killme2008/xmemcached/releases/tag/xmemcached-2.4.3
This fixes #68
The problem was the the
AuthInfoMap
stores anAuthInfo
for a server'sInetSocketAddress
. Unfortunately, theInetSocketAddress
hash is based on the resolved IP which can change. For this reason I changed theAuthInfoMap
to store theAuthInfo
based on the servers (hostname:port) string.Note, I tried to fix this problem without changing any public interface but I don't like it. I could also change the
MemcachedClient.getAuthInfoMap()
frompublic Map<InetSocketAddress, AuthInfo> getAuthInfoMap();
topublic Map<String, AuthInfo> getAuthInfoMap();
instead. This would be a bit nicer but change the interface. What do you think?Review by commit. The first commit only removes trailing whitespaces. The code changes are all in the second commit.