Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Increase Browser Timeout

Post Reply
marcoscdoni
Posts: 25
Joined: Thu Sep 21, 2017 4:33 pm

Increase Browser Timeout

Post 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.
User avatar
salvadordf
Posts: 4620
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Increase Browser Timeout

Post 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
marcoscdoni
Posts: 25
Joined: Thu Sep 21, 2017 4:33 pm

Re: Increase Browser Timeout

Post 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?
User avatar
salvadordf
Posts: 4620
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Increase Browser Timeout

Post 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
Post Reply