radar / elastic

A thin veneer over HTTPotion that talks to Elastic Search

Home Page:https://hex.pm/packages/elastic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scroller GenServer call timeouts

twix14 opened this issue · comments

Hi,

I've found a problem with the Scroller implementation.

GenServer's default timeout for every call function is 5000 (5 sec), that value is used in the Scroller by default and there's currently no way of changing it. Meaning that, when you ask for the next_page and the Scroll.next() takes longer than 5 seconds the Scroller will crash with a timeout.

This can be fixed by placing the HTTP timeout env in the next_page call, which will then change the timeout value for it.

I can work on a pull request if needed.

Yes please.