Handling Network process crash

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Handling Network process crash

Postby sjames1958 » Thu Sep 17, 2020 8:45 am

We have recently moved from an old version of CEF running as a single process to the latest multiple process CEF (84).
I am working on making sure that our app is resilient to process failures. For the renderer we get an event in the browser and can handle that.
For the GPU and network processes those are restarted automatically. All seems great. However, network requests that are in flight when the
network process fails hang. Is there any mechanism in CEF to be able to 1) be notified in the browser process of the network process failure or 2)
get some notification that a network requests failed due to network process failure?

This is on macOS and windows 32 bit.
sjames1958
Techie
 
Posts: 12
Joined: Sun Jun 22, 2014 7:41 am

Re: Handling Network process crash

Postby magreenblatt » Thu Sep 17, 2020 10:50 am

network requests that are in flight when the
network process fails hang

How are you testing or reproducing a crashing network process? Does this hang problem reproduce with Google Chrome?
magreenblatt
Site Admin
 
Posts: 10556
Joined: Fri May 29, 2009 6:57 pm

Re: Handling Network process crash

Postby sjames1958 » Mon Sep 21, 2020 12:24 pm

The hanging happens in the C++ Code, not in the browser, so duplicating in Chrome doesn't seem the same.
I am killing the process using kill function - this is on macOS, just FYI
sjames1958
Techie
 
Posts: 12
Joined: Sun Jun 22, 2014 7:41 am

Re: Handling Network process crash

Postby magreenblatt » Mon Sep 21, 2020 12:28 pm

sjames1958 wrote:The hanging happens in the C++ Code, not in the browser, so duplicating in Chrome doesn't seem the same.

Were you able to identify where (what function, etc) is causing the network requests to hang?
magreenblatt
Site Admin
 
Posts: 10556
Joined: Fri May 29, 2009 6:57 pm

Re: Handling Network process crash

Postby sjames1958 » Wed Sep 23, 2020 1:05 pm

No, we just never receive the OnRequestComplete callback after the process is restarted.
sjames1958
Techie
 
Posts: 12
Joined: Sun Jun 22, 2014 7:41 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 13 guests