+2012-10-24 Seokju Kwon <seokju.kwon@samsung.com>
+
+ [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 <thakis@chromium.org>
Pass on exif orientation from ImageSource when using the open-source image decoders
: 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);
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);
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) {
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();