9d95941e0b67e6faa4d827ad7b07374760a8c71e
[WebKit-https.git] / Source / WebKit2 / ChangeLog
1 2011-06-06  Carlos Garcia Campos  <cgarcia@igalia.com>
2
3         Reviewed by Anders Carlsson.
4
5         [UNIX] SOCK_DGRAM sockets are not notified when the other end closes the connection
6         https://bugs.webkit.org/show_bug.cgi?id=61538
7
8         Use SOCK_STREAM instead of SOCK_DGRAM sockets. Rework the message
9         receiver code to support stream sockets, since it requires to
10         handle message boundaries. The same code works for DGRAM sockets,
11         so this change shouldn't break other ports using DGRAM.
12
13         * Platform/CoreIPC/Connection.h:
14         * Platform/CoreIPC/unix/ConnectionUnix.cpp:
15         (CoreIPC::Connection::platformInitialize):
16         (CoreIPC::Connection::processMessage): Process messages from data
17         already received.
18         (CoreIPC::readBytesFromSocket): Read from socket using recvmsg().
19         (CoreIPC::Connection::readyReadHandler):
20         * UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp:
21         (WebKit::ProcessLauncher::launchProcess): Use SOCK_DGRAM in
22         socketpair().
23
24 == Rolled over to ChangeLog-2011-06-04 ==