Reputation: 2678
I have the shiny application deployed on the Rshiny pro server(1.5.2)
. The application processes the excel files
and generates the report(using RMarkdown
) in the form of word document(having text content, tables and graphs).
Success case: Application does some heavy computations on the input data(for example: for 12 data points) and it takes approx. 30 to 45 seconds for it. These computation happens on downloadHandler
action. The size
of the report which being generated is around 1.2 MB
. Everything works perfectly in such scenario.
Failure case: Application does some heavy computations on the input data(for example: for 14 data points) and it takes approx. more than 50 seconds for it. Now, during these computations (report generation) it's showing the network error on the UI only. Despite this error on the UI, in the back-end the report file is getting generated, but the generated report doesn't get downloaded(it shows failed report downloading due to network error)
I am looking for help regarding-
session timeout
?Rshiny pro server
or downloadHandler
action?Upvotes: 1
Views: 1364
Reputation: 2678
After investigating and trying out different options I have found the root cause for the network error issue.
I have posted the the answer for the same here. Although I would like to answer above mentioned questions quickly.
http_keepalive_timeout
parameter was not defined in the server configuration
and the default value for http_keepalive_timeout
parameter is 45 seconds
.That's why it was showing the network error approx. after 45 seconds.http_keepalive_timeout
is the parameter which defines the active session time between the user and server.Upvotes: 1