Skip to content

Commit

Permalink
Clear connection pool for OkHttpClient
Browse files Browse the repository at this point in the history
Closes gh-23628
  • Loading branch information
alexey-anufriev authored and rstoyanchev committed Nov 1, 2019
1 parent 3858a69 commit 2d208de
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -121,6 +121,7 @@ public void destroy() throws IOException {
cache.close();
}
this.client.dispatcher().executorService().shutdown();
this.client.connectionPool().evictAll();
}
}

Expand Down

0 comments on commit 2d208de

Please sign in to comment.