Otann / morse

📡 Clojure interface for Telegram Bot API
Eclipse Public License 1.0
257 stars 48 forks source link

Global timeout outside of clj-http for getting updates in the polling process. #31

Closed dixel closed 6 years ago

dixel commented 6 years ago

Running a telegram-bot in a long-polling mode I sometimes experienced a complete freeze of the polling process. According to some issues I had in the past, clj-http doesn't usually handle timeouts in an expected way, probably mainly because of this issue in JDK: https://bugs.openjdk.java.net/browse/JDK-8075484. Having some external timeout that could inform the user application can be quite useful in such scenarios, but obviously would be good to address this issue to the maintainers of clj-http as well.

Otann commented 6 years ago

Released 0.3.2 to Clojars with your fix, thank you for the PR!