[erlang-questions] Cowboy handler: wait for slow backend

Frank Muller frank.muller.erl@REDACTED
Tue Mar 21 20:22:05 CET 2017


Thanks a lot guys. Works perfectly now :-)

/Frank

Hi,
>
> You can set a request timeout in the cowboy options. The default is 5
> seconds.
>
> See also the change here (at the bottom)
>
> https://github.com/zotonic/zotonic/commit/ad0ec7576ee1cbbb589f61ff4528fbeb29b11d36
>
> Best, Marc
>
> Sent from my iPhone
>
> On 21 Mar 2017, at 19:22, Frank Muller <frank.muller.erl@REDACTED> wrote:
>
> Hi Everyone,
>
> I’m facing a little strange issue with Cowboy (latest from GitHub).
>
> My backend (a DB) takes couple of seconds before returning a result.
>
> The problem is that my Cowboy’ handler seems to close the connexion with
> the client before my backend returns. Or wait forever!!!
>
> Is there a way to tell Cowboy to wait let say 30sec before closing the
> connexion with the client ???
>
> Thanks in advance.
>
> /Frank
>
> _______________________________________________
>
>
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170321/4dca32a0/attachment.htm>


More information about the erlang-questions mailing list