Bug 95616

Summary: [WK2] WebProcesses should not wait 60 seconds to close in multi-process mode
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: WebKit2Assignee: Alexey Proskuryakov <ap>
Status: RESOLVED FIXED    
Severity: Normal CC: darin
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
proposed patch darin: review+

Description Alexey Proskuryakov 2012-08-31 15:44:21 PDT
Patch forthcoming.
Comment 1 Alexey Proskuryakov 2012-08-31 15:52:47 PDT
Created attachment 161786 [details]
proposed patch
Comment 2 Darin Adler 2012-08-31 16:00:49 PDT
Comment on attachment 161786 [details]
proposed patch

View in context: https://bugs.webkit.org/attachment.cgi?id=161786&action=review

r=me assuming you fix the bool/double thing

> Source/WebKit2/Shared/Plugins/PluginProcessCreationParameters.h:53
> +    bool terminationTimeout;

This needs to be double, right?

> Source/WebKit2/UIProcess/WebContext.cpp:89
> +static const double sharedSecondaryProcessShutdownTimeout = 60;

Add a comment about why 60 seconds is a good value?

> Source/WebKit2/UIProcess/Plugins/PluginProcessProxy.cpp:50
> +static const double shutdownTimeout = 15;

Add a comment about why 15 seconds is a good value?
Comment 3 Alexey Proskuryakov 2012-08-31 16:21:14 PDT
> Add a comment about why 60 seconds is a good value?

That's just moved code, I have no insight into how these values were chosen originally, or why they are different.
Comment 4 Alexey Proskuryakov 2012-08-31 16:27:41 PDT
Committed <http://trac.webkit.org/changeset/127334>. Great catch with the bool!