Bug 129802

Summary: [GTK] Don't busy loop when the socket is full
Product: WebKit Reporter: Giovanni Campagna <scampa.giovanni>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: berto, cgarcia, commit-queue, dpino, pnormand
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Giovanni Campagna
Reported 2014-03-06 07:46:49 PST
[GTK] Don't busy loop when the socket is full
Attachments
Patch (1.20 KB, patch)
2014-03-06 07:47 PST, Giovanni Campagna
no flags
Patch (2.09 KB, patch)
2014-03-17 02:28 PDT, Giovanni Campagna
no flags
Giovanni Campagna
Comment 1 2014-03-06 07:47:55 PST
Philippe Normand
Comment 2 2014-03-16 03:41:39 PDT
Interesting patch! Would you mind providing a ChangeLog? Tools/Scripts/prepare-ChangeLog can generate a template to fill out.
Carlos Garcia Campos
Comment 3 2014-03-17 01:40:36 PDT
Comment on attachment 225992 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=225992&action=review Thanks for the patch. This patch needs a ChangeLog, see http://www.webkit.org/coding/contributing.html. > Source/WebKit2/Platform/IPC/unix/ConnectionUnix.cpp:37 > +#include <poll.h> Is this available in all UNIX platforms? > Source/WebKit2/Platform/IPC/unix/ConnectionUnix.cpp:535 > + poll(&pollfd, 1, -1); > + } Does this really work? Don't you need to continue the loop when poll returns?
Giovanni Campagna
Comment 4 2014-03-17 02:23:06 PDT
(In reply to comment #3) > (From update of attachment 225992 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=225992&action=review > > Thanks for the patch. This patch needs a ChangeLog, see http://www.webkit.org/coding/contributing.html. > > > Source/WebKit2/Platform/IPC/unix/ConnectionUnix.cpp:37 > > +#include <poll.h> > > Is this available in all UNIX platforms? Yes, it is part of the Single Unix Specification, see http://pubs.opengroup.org/onlinepubs/9699919799/toc.htm
Giovanni Campagna
Comment 5 2014-03-17 02:28:24 PDT
Carlos Garcia Campos
Comment 6 2014-03-17 10:48:19 PDT
Comment on attachment 226897 [details] Patch Ok looks good. Thanks!
WebKit Commit Bot
Comment 7 2014-03-17 11:20:57 PDT
Comment on attachment 226897 [details] Patch Clearing flags on attachment: 226897 Committed r165745: <http://trac.webkit.org/changeset/165745>
WebKit Commit Bot
Comment 8 2014-03-17 11:21:00 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.