@@ -1353,35 +1353,36 @@ public static Client getClient(KeyStore keyStore, String keyStorePassword, KeySt
13531353 register ("http" , new PlainConnectionSocketFactory ()).
13541354 build ();
13551355
1356- PoolingHttpClientConnectionManager conman = new PoolingHttpClientConnectionManager (socketFactoryRegistry )
1357- {
1358-
1359- // https://github.com/eclipse-ee4j/jersey/issues/4449
1360-
1361- @ Override
1362- public void close ()
1363- {
1364- super .shutdown ();
1365- }
1366-
1367- @ Override
1368- public void shutdown ()
1369- {
1370- // Disable shutdown of the pool. This will be done later, when this factory is closed
1371- // This is a workaround for finalize method on jerseys ClientRuntime which
1372- // closes the client and shuts down the connection pool when it is garbage collected
1373- };
1374-
1375- // https://github.com/eclipse-ee4j/jersey/issues/2855
1376-
1377- @ Override
1378- public void releaseConnection (final HttpClientConnection managedConn , final Object state , final long keepalive , final TimeUnit timeUnit )
1379- {
1380- // set state to null to allow reuse of connections
1381- super .releaseConnection (managedConn , null , keepalive , timeUnit );
1382- }
1356+ PoolingHttpClientConnectionManager conman = new PoolingHttpClientConnectionManager (socketFactoryRegistry );
1357+ // {
1358+ //
1359+ // // https://github.com/eclipse-ee4j/jersey/issues/4449
1360+ //
1361+ // @Override
1362+ // public void close()
1363+ // {
1364+ // super.shutdown();
1365+ // }
1366+ //
1367+ // @Override
1368+ // public void shutdown()
1369+ // {
1370+ // // Disable shutdown of the pool. This will be done later, when this factory is closed
1371+ // // This is a workaround for finalize method on jerseys ClientRuntime which
1372+ // // closes the client and shuts down the connection pool when it is garbage collected
1373+ // };
1374+ //
1375+ // // https://github.com/eclipse-ee4j/jersey/issues/2855
1376+ //
1377+ // @Override
1378+ // public void releaseConnection(final HttpClientConnection managedConn, final Object state, final long keepalive, final TimeUnit timeUnit)
1379+ // {
1380+ // // set state to null to allow reuse of connections
1381+ // super.releaseConnection(managedConn, null, keepalive, timeUnit);
1382+ // }
1383+ //
1384+ // };
13831385
1384- };
13851386 if (maxConnPerRoute != null ) conman .setDefaultMaxPerRoute (maxConnPerRoute );
13861387 if (maxTotalConn != null ) conman .setMaxTotal (maxTotalConn );
13871388
0 commit comments