diff --git a/lib/shared/timeouts.js b/lib/shared/timeouts.js --- a/lib/shared/timeouts.js +++ b/lib/shared/timeouts.js @@ -8,26 +8,26 @@ // Time for request to get response after which we consider our connection // questionable. We won't close and reopen the socket yet, but we will visually // indicate to the user that their connection doesn't seem to be working. -export const clientRequestVisualTimeout = 5000; // in milliseconds +export const clientRequestVisualTimeout = 8000; // in milliseconds // Time for request to get response after which we assume our socket // is dead. It's possible this happened because of some weird shit on // the server side, so we try to close and reopen the socket in the // hopes that it will fix the problem. Of course, this is rather // unlikely, as the connectivity issue is likely on the client side. -export const clientRequestSocketTimeout = 10000; // in milliseconds +export const clientRequestSocketTimeout = 13000; // in milliseconds // Time after which FetchJSON will timeout a request. When using sockets this is // preempted by the above timeout, so it really only applies for HTTP requests. -export const fetchJSONTimeout = 10000; // in milliseconds +export const fetchJSONTimeout = 15000; // in milliseconds // The server expects to get a request at least every three // seconds from the client. If server doesn't get a request // after time window specified below, it will close connection -export const serverRequestSocketTimeout = 120000; // in milliseconds +export const serverRequestSocketTimeout = 150000; // in milliseconds // Time server allows itself to respond to client message. If it // takes it longer to respond, it will timeout and send an error // response. This is better than letting the request timeout on the // client, since the client will assume network issues and close the socket. -export const serverResponseTimeout = 5000; // in milliseconds +export const serverResponseTimeout = 8000; // in milliseconds