Skip to content

Commit 78f5d89

Browse files
[SOUP] WPENetworkProcess crashed on process exit
https://bugs.webkit.org/show_bug.cgi?id=290446 Reviewed by Michael Catanzaro. To cancel all pending requests before network process exits, we have to abort the current soup session. This will cancell all pending cancellable task in glib-network backends (e.g.: OpenSSL, GnuTLS). Original author: Volodymyr Ogorodnik() See: #1482 * Source/WebCore/platform/network/soup/SoupNetworkSession.cpp: (WebCore::SoupNetworkSession::~SoupNetworkSession): Canonical link: https://commits.webkit.org/294000@main
1 parent f82ef2b commit 78f5d89

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Source/WebCore/platform/network/soup/SoupNetworkSession.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,10 @@ SoupNetworkSession::SoupNetworkSession(PAL::SessionID sessionID)
152152
setupLogger();
153153
}
154154

155-
SoupNetworkSession::~SoupNetworkSession() = default;
155+
SoupNetworkSession::~SoupNetworkSession()
156+
{
157+
soup_session_abort(m_soupSession.get());
158+
}
156159

157160
void SoupNetworkSession::setupLogger()
158161
{

0 commit comments

Comments
 (0)