Page 1 of 1

Increase Browser Timeout

Posted: Thu Sep 28, 2017 2:32 pm
by marcoscdoni
Hello Salvador!

I am frequently getting http error code: -118 loading a website. I think it may be temporary slowness of the site. However, when accessed by Firefox, the error does not happens.

Since error -118 means "(net :: ERR_CONNECTION_TIMED_OUT)".

I would like to know if there is any parameter I could specify to increase browser timeout.

Re: Increase Browser Timeout

Posted: Thu Sep 28, 2017 3:17 pm
by salvadordf
Hi,

As far as I know, there's no way to change that timeout interval. It's buried in Chromium's code and it seems Google is ignoring these requests.

Read this from the official CEF3 forum :
http://magpcss.org/ceforum/viewtopic.php?f=6&t=13080

However, if the website you're trying to visit is in a content delivery network (CDN) you could access a faster web server with the same content by changing your DNS, using a proxy or even with a VPN.

For alternative DNS servers read this :
https://www.briskbard.com/blog/?q=node/43

For proxy servers read this :
https://www.briskbard.com/blog/?q=node/45

For free VPNs read this :
https://www.briskbard.com/blog/?q=node/47

Re: Increase Browser Timeout

Posted: Thu Sep 28, 2017 4:27 pm
by marcoscdoni
Salvador,

I thought it might be cache related.

So, one more question. If I do not specify a folder to cache, does not the browser automatically use a cache or use another default folder? Can I not use cache folder and run in memory only?

Re: Increase Browser Timeout

Posted: Thu Sep 28, 2017 6:27 pm
by salvadordf
marcoscdoni wrote: Thu Sep 28, 2017 4:27 pm I thought it might be cache related.
There are several fixes for that error and one of them is to clear the browser cache :
https://www.drivereasy.com/knowledge/er ... timed-out/

I'm not sure if that's really effective with a connection timeout.
marcoscdoni wrote: Thu Sep 28, 2017 4:27 pm So, one more question. If I do not specify a folder to cache, does not the browser automatically use a cache or use another default folder? Can I not use cache folder and run in memory only?
These are the code comments in CEF3 for that setting :
/include/internal/cef_types.h

Code: Select all

  ///
  // The location where cache data will be stored on disk. If empty then
  // browsers will be created in "incognito mode" where in-memory caches are
  // used for storage and no data is persisted to disk. HTML5 databases such as
  // localStorage will only persist across sessions if a cache path is
  // specified. Can be overridden for individual CefRequestContext instances via
  // the CefRequestContextSettings.cache_path value.
  ///
The CEF Wiki has a similar explanation about then cache_path in CefSettings :
https://bitbucket.org/chromiumembedded/ ... neralUsage