Skip to content

Commit 1fd9263

Browse files
committed
tweak: configure settings for pool
1 parent 61174d1 commit 1fd9263

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/com/danga/MemCached/test/UnitTests.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,13 @@ public static void main(String[] args) {
166166
// initialize the pool for memcache servers
167167
SockIOPool pool = SockIOPool.getInstance( "test" );
168168
pool.setServers( serverlist );
169+
pool.setSocketConnectTO( 500 );
170+
pool.setInitConn( 10 );
171+
pool.setMinConn( 5 );
172+
pool.setMaxConn( 250 );
173+
pool.setMaintSleep( 30 );
174+
pool.setNagle( false );
175+
pool.setSocketTO( 3000 );
169176
pool.initialize();
170177

171178
mc = new MemCachedClient();

0 commit comments

Comments
 (0)