tentacat icon indicating copy to clipboard operation
tentacat copied to clipboard

Timeout Settings

Open chaseconey opened this issue 2 years ago • 1 comments

Hello there 👋 .

I dug through the code and didn't see a way to configure any type of timeout for the response back from Github. It looks as though Github has a timeout of 10 seconds, but the timeout of this client seems to be much lower in using it. Is there a native way to adjust the timeout period?

Thanks!

chaseconey avatar Apr 01 '22 16:04 chaseconey

:wave: You can set request options for underlying HTTPoison client like this:

config :tentacat,
  request_options: [
    timeout: :timer.seconds(15),
    recv_timeout: :timer.seconds(10)
  ]

There are more options you can set as stated in the docs.

skipi avatar May 01 '22 17:05 skipi