Modified: trunk/Source/WebCore/ChangeLog (132434 => 132435)
--- trunk/Source/WebCore/ChangeLog 2012-10-25 00:47:52 UTC (rev 132434)
+++ trunk/Source/WebCore/ChangeLog 2012-10-25 00:49:44 UTC (rev 132435)
@@ -1,3 +1,18 @@
+2012-10-24 Seokju Kwon <[email protected]>
+
+ [SOUP] Provide logging for SocketStreamHandleSoup
+ https://bugs.webkit.org/show_bug.cgi?id=100215
+
+ Reviewed by Alexey Proskuryakov.
+
+ Add logging to SocketStreamHandleSoup to facilitate debugging.
+
+ * platform/network/soup/SocketStreamHandleSoup.cpp:
+ (WebCore::SocketStreamHandle::SocketStreamHandle):
+ (WebCore::SocketStreamHandle::~SocketStreamHandle):
+ (WebCore::SocketStreamHandle::platformSend):
+ (WebCore::SocketStreamHandle::platformClose):
+
2012-10-24 Nico Weber <[email protected]>
Pass on exif orientation from ImageSource when using the open-source image decoders
Modified: trunk/Source/WebCore/platform/network/soup/SocketStreamHandleSoup.cpp (132434 => 132435)
--- trunk/Source/WebCore/platform/network/soup/SocketStreamHandleSoup.cpp 2012-10-25 00:47:52 UTC (rev 132434)
+++ trunk/Source/WebCore/platform/network/soup/SocketStreamHandleSoup.cpp 2012-10-25 00:49:44 UTC (rev 132435)
@@ -84,6 +84,7 @@
: SocketStreamHandleBase(url, client)
, m_readBuffer(0)
{
+ LOG(Network, "SocketStreamHandle %p new client %p", this, m_client);
unsigned int port = url.hasPort() ? url.port() : (url.protocolIs("wss") ? 443 : 80);
m_id = activateHandle(this);
@@ -96,6 +97,7 @@
SocketStreamHandle::~SocketStreamHandle()
{
+ LOG(Network, "SocketStreamHandle %p delete", this);
// If for some reason we were destroyed without closing, ensure that we are deactivated.
deactivateHandle(this);
setClient(0);
@@ -153,6 +155,7 @@
int SocketStreamHandle::platformSend(const char* data, int length)
{
+ LOG(Network, "SocketStreamHandle %p platformSend", this);
GOwnPtr<GError> error;
gssize written = g_pollable_output_stream_write_nonblocking(m_outputStream.get(), data, length, 0, &error.outPtr());
if (error) {
@@ -173,6 +176,7 @@
void SocketStreamHandle::platformClose()
{
+ LOG(Network, "SocketStreamHandle %p platformClose", this);
// We remove this handle from the active handles list first, to disable all callbacks.
deactivateHandle(this);
stopWaitingForSocketWritability();