hashbang / irc-bot

IRC Bot
MIT License
3 stars 6 forks source link

Slow HTTP response can block the title printing/shortening #10

Open tilpner opened 7 years ago

tilpner commented 7 years ago

These lines don't pass the timeout options specified by http. request:go and stream:get_body_chars should receive a configurable timeout to abort quickly on slow servers

tilpner commented 7 years ago

Posting https://irc-bot-science.clsr.net/wait/3/len/4/msg/dGVzdA== (takes 36s with curl here) should abort and display an appropriate error message, instead of blocking all link shortening for 36 seconds