Difference between Connection Timeout and Read timeout

4,459 views
Skip to first unread message

Lasse Thorst

unread,
Dec 27, 2016, 3:19:31 AM12/27/16
to shinyapps.io Users

We're have a big data app with few users ( < 15) which we don't want to time out in the browser for a long period. So, the users hops on the app, and does their stuff - then they should be able to hop back and view this after x-time. X being at least 1 hour. 

The description for Connection Timeout and Read Timeout is kinda vague and hard to understand: 

" Connection Timeout: (900 secs) Seconds of inactivity before a browser connection to a worker process is considered to be idle and is closed. "

" Read Timeout: (3600 secs) Seconds of browser to worker inactivity after which the connection is considered to be idle and is closed. Use a value of 0 for non-interactive applications, e.g. a dashboard."  

What is the difference between these two? They both talk about browser to worker connection? 

Joshua Spiewak

unread,
Jan 3, 2017, 1:15:27 PM1/3/17
to shinyapps.io Users
The documentation gives a slightly longer explanation, but is essentially the same.
The connection timeout looks at traffic in both directions, while the read timeout is the application reading from the browser, thus if you have a dashboard you want to set that to 0.

The higher you set the timeouts, the more hours your application will consume, so make sure you are on an appropriate plan.
Reply all
Reply to author
Forward
0 new messages