sys1yagi / mastodon4j

mastodon client for java, kotlin https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md
MIT License
135 stars 28 forks source link

MastodonClient stuck on 127.0.0.1 #83

Open egothor opened 5 years ago

egothor commented 5 years ago

MastodonClient (or OkHttp) does not release its connection to 127.0.0.1:443 and waits until some timeout passes. It is a pain, because I run short transactions only and my application must wait 1-2 minutes for nothing.

Would it be possible to shutdown MastodonClient and/or OkHttp pool somehow? There is not a respective method in MastodonClient.