jruby-memcache-client icon indicating copy to clipboard operation
jruby-memcache-client copied to clipboard

startup error when port not specified

Open gucki opened this issue 14 years ago • 3 comments

If you specify a server simply by it's ip without a port (1.2.3.4 and not 1.2.3.4:11211) startups fails like:

com.meetup.memcached.SockIOPool Sat May 01 13:39:04 CEST 2010 - ++++ failed to get SockIO obj for: 1.2.3.4 com.meetup.memcached.SockIOPool Sat May 01 13:39:04 CEST 2010 - 1 java.lang.ArrayIndexOutOfBoundsException: 1 at com.meetup.memcached.SockIOPool$SockIO.(SockIOPool.java:1583) at com.meetup.memcached.SockIOPool.createSocket(SockIOPool.java:780) at com.meetup.memcached.SockIOPool.populateBuckets(SockIOPool.java:669)

gucki avatar May 01 '10 11:05 gucki

Will look into it.

fredjean avatar May 03 '10 16:05 fredjean

Writing specs to attempt to reproduce.

fredjean avatar Jun 15 '10 23:06 fredjean

I just committed code that normalize the server address using the default port (11211) if the port isn't provided. I am waiting on the result of a discussion with a contributor before cutting a release.

fredjean avatar Jun 16 '10 00:06 fredjean