You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Only one of them can be used due to both resolving to the same thing by .String(). I must say that I was not happy when I found this after like ~1h of debugging why is one of the memcached servers ignored.
I guess one solution would be to include type of the addr into the hash. So something like
EDIT: Combined with the fact that idle connections cannot be disabled (since 0 means default, not 0) I'm currently just recreating client for each requests, which is strongly suboptimal.
The text was updated successfully, but these errors were encountered:
I've been trying some weird setups with custom ServerList and I've run into bug due to https://github.com/bradfitz/gomemcache/blob/master/memcache/memcache.go#L209:
In other words, when I create my own ServerList which contains two addresses:
Only one of them can be used due to both resolving to the same thing by
.String()
. I must say that I was not happy when I found this after like ~1h of debugging why is one of the memcached servers ignored.I guess one solution would be to include type of the addr into the hash. So something like
EDIT: Combined with the fact that idle connections cannot be disabled (since 0 means default, not 0) I'm currently just recreating client for each requests, which is strongly suboptimal.
The text was updated successfully, but these errors were encountered: