[Webkit-unassigned] [Bug 41690] [Qt] Close the WebProcess when the client disconnects from the socket

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 27 02:08:26 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=41690





--- Comment #13 from Balazs Kelemen <kb at inf.u-szeged.hu>  2010-07-27 02:08:25 PST ---
> 
> We actually quit the run loop when the last web page has been closed. Is there a reason why the web process doesn't exit when that happens?

Huh, seems like I get confused while working on this. There was various problems with our implementation of Connection but it seems like these have been fixed. So, to be able to exit from the web process when it gets the close message, we should just implement RunLoop::exit. The other parts of the patch assures that the web process would exit even when the client did not tear down correctly (killed or crashed). Don't you think this is something we should implement? Actually, I would introduce a common method of Connection what would look like this:
void didDisconnect()
{
    m_client->didClose();
}
Maybe didClose would be a better name. This way all port can schedule to call this on the main run loop when the connection became broken.
Do you like the idea? (I mean the whole concept not just the new function.)

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list