Thanks a lot Scott for the pointer. Appreciate. However we already have MOJO_INACTIVITY_TIMEOUT set to 60 seconds in our app. We are not hitting inactivity timeout. But _read in Stream.pm fails ( Randomly) and its caught in the error method $stream->on(error of Daemon. I wanted to know what can lead to read issue and the importance of 15 seconds in non blocking I/O. There is nothing in the log file, other than "[error]" Thanks in advance.
On Mon, Oct 1, 2018 at 6:42 PM Scott Wiersdorf <[email protected]> wrote: > Hi Ganesh, > > Maybe this thread will give you some ideas: > > https://groups.google.com/d/msg/mojolicious/y43kqu06sgg/jLvSkSYvAgAJ > > Scott > > On Sunday, September 30, 2018 at 10:19:45 PM UTC-6, Ganesh Udupa wrote: >> >> Can someone help here? >> Hi Sebastian would you know about th >> >> On Fri, Sep 28, 2018 at 12:20 PM Ganesh Udupa <[email protected]> wrote: >> >>> >>> https://github.com/mojolicious/mojo/blob/master/lib/Mojo/IOLoop/Stream.pm#L40 >>> Can someone help me understand what exactly is the timeout here?. I >>> understand that we use Non blocking I/O and it might retry. >>> I wanted to understand the behavior when it fails to read in 15 >>> seconds. Will the method _read ( >>> https://github.com/mojolicious/mojo/blob/master/lib/Mojo/IOLoop/Stream.pm#L98 >>> ) >>> throw an error? . Is there a way to increase this timeout from 15 >>> seconds? >>> The reason I ask is that, in our application, read_ is ending up with an >>> error randomly. ( Very rare). Since this error is not printed, we are >>> unable to root cause it. >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Mojolicious" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at https://groups.google.com/group/mojolicious. >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- > You received this message because you are subscribed to the Google Groups > "Mojolicious" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/mojolicious. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.
