binance-exchange / binance-java-api

binance-java-api is a lightweight Java library for the Binance API, supporting synchronous and asynchronous requests, as well as event streaming using WebSockets.
MIT License
831 stars 623 forks source link

Allow manual closing of underlying okHttpClient connection pool #289

Open biomechanism opened 4 years ago

biomechanism commented 4 years ago

If there are idle okHttpClient connections a program cannot shutdown cleanly without waiting for them to timeot. This provides a way for them to be released on request and allow immediate shutdown.