diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2012-10-17 16:21:14 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2012-10-17 16:21:14 +0200 |
commit | 8995b83bcbfbb68245f779b64e5517627c6cc6ea (patch) | |
tree | 17985605dab9263cc2444bd4d45f189e142cca7c /Source/WebKit/chromium/src/SocketStreamHandle.cpp | |
parent | b9c9652036d5e9f1e29c574f40bc73a35c81ace6 (diff) | |
download | qtwebkit-8995b83bcbfbb68245f779b64e5517627c6cc6ea.tar.gz |
Imported WebKit commit cf4f8fc6f19b0629f51860cb2d4b25e139d07e00 (http://svn.webkit.org/repository/webkit/trunk@131592)
New snapshot that includes the build fixes for Mac OS X 10.6 and earlier as well
as the previously cherry-picked changes
Diffstat (limited to 'Source/WebKit/chromium/src/SocketStreamHandle.cpp')
-rw-r--r-- | Source/WebKit/chromium/src/SocketStreamHandle.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/Source/WebKit/chromium/src/SocketStreamHandle.cpp b/Source/WebKit/chromium/src/SocketStreamHandle.cpp index 5eed90011..3f98a77db 100644 --- a/Source/WebKit/chromium/src/SocketStreamHandle.cpp +++ b/Source/WebKit/chromium/src/SocketStreamHandle.cpp @@ -37,10 +37,9 @@ #include "Logging.h" #include "NotImplemented.h" #include "SocketStreamHandleClient.h" -#include "platform/WebData.h" -#include "WebKit.h" -#include "platform/WebKitPlatformSupport.h" -#include "platform/WebSocketStreamHandle.h" +#include <public/Platform.h> +#include <public/WebData.h> +#include <public/WebSocketStreamHandle.h> #include <wtf/PassOwnPtr.h> using namespace WebKit; @@ -73,7 +72,13 @@ void SocketStreamHandleInternal::connect(const KURL& url) int SocketStreamHandleInternal::send(const char* data, int len) { LOG(Network, "send len=%d", len); - ASSERT(m_socket); + // FIXME: |m_socket| should not be null here, but it seems that there is the + // case. We should figure out such a path and fix it rather than checking + // null here. + if (!m_socket) { + LOG(Network, "m_socket is null when sending. It should not be."); + return 0; + } if (m_pendingAmountSent + len >= m_maxPendingSendAllowed) len = m_maxPendingSendAllowed - m_pendingAmountSent - 1; |