WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
116873
[Qt][WK2] Make the work queue take the ownership of the socket descriptor
https://bugs.webkit.org/show_bug.cgi?id=116873
Summary
[Qt][WK2] Make the work queue take the ownership of the socket descriptor
Carlos Garcia Campos
Reported
2013-05-28 09:59:29 PDT
We have found several race conditions with the connection termination in the GTK+ port and have switched to make the work queue the only one responsible for closing the socket. We added another platform ifdef to platformInvalidate in ConnectionUnix.cpp. See
bug #115880
for more details. Both Anders and Martin suggested that to avoid race conditions this should also be the case of other ports, and the connection queue should take the ownership of the socket descriptor. That way we can get rid of the platform ifdef added to ConnectionUnix.
Attachments
Patch
(3.64 KB, patch)
2013-06-11 16:46 PDT
,
Lamarque V. Souza
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Lamarque V. Souza
Comment 1
2013-06-11 16:46:36 PDT
Created
attachment 204370
[details]
Patch Proposed patch. By what I can see only Connection::platformInitialize() closes the socket descriptor in the Qt port. This patch moves the loop closing the socket descriptor to SocketNotifier's destructor. SocketNotifier is a new class that inherits from QSocketNotifier. SocketNotifier is destroyed a few lines below the loop in Connection::platformInvalidate(), so this change should keep things working the same as before. I tested this change with the 'Test case' patch in
https://bugs.webkit.org/show_bug.cgi?id=115880
and it passes.
Anders Carlsson
Comment 2
2013-10-02 21:33:33 PDT
Comment on
attachment 204370
[details]
Patch Qt has been removed, clearing review flags.
Jocelyn Turcotte
Comment 3
2014-02-03 03:25:51 PST
=== Bulk closing of Qt bugs === If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary. If you believe that this is still an important QtWebKit bug, please fill a new report at
https://bugreports.qt-project.org
and add a link to this issue. See
http://qt-project.org/wiki/ReportingBugsInQt
for additional guidelines.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug