Clear connection pool for OkHttpClient

Closes gh-23628
This commit is contained in:
AlexeyAnufriev 2019-09-12 15:21:34 +02:00 committed by Rossen Stoyanchev
parent 3858a69c42
commit 2d208de145
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright 2002-2018 the original author or authors.
* Copyright 2002-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -121,6 +121,7 @@ public class OkHttp3ClientHttpRequestFactory
cache.close();
}
this.client.dispatcher().executorService().shutdown();
this.client.connectionPool().evictAll();
}
}