Changeset 146965 in webkit
- Timestamp:
- Mar 26, 2013 10:03:11 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r146961 r146965 1 2013-03-26 Takeshi Yoshino <tyoshino@chromium.org> 2 3 Make SocketStreamHandle (Chromium port) fully use IPC window in send() 4 https://bugs.webkit.org/show_bug.cgi?id=113304 5 6 Reviewed by Kent Tamura. 7 8 socket_stream of Chromium buffers send data up to 32KiB (exact) bytes. 9 10 However, SocketStreamHandleInternal::send() method now keeps in-flight 11 send data not greater than m_maxPendingSendAllowed - 1 that is 12 32KiB - 1. This means that SocketStreamHandleInternal consumes the 13 buffered data in SocketStreamHandleBase by 32KiB - 1. It makes memory 14 copy operations unaligned unnecessarily. It should just use the 15 allowed size fully. 16 17 * platform/network/chromium/SocketStreamHandle.cpp: 18 (WebCore::SocketStreamHandleInternal::send): 19 (WebCore): 20 1 21 2013-03-26 Hayato Ito <hayato@chromium.org> 2 22 -
trunk/Source/WebCore/platform/network/chromium/SocketStreamHandle.cpp
r139774 r146965 78 78 return 0; 79 79 } 80 if (m_pendingAmountSent + len > =m_maxPendingSendAllowed)81 len = m_maxPendingSendAllowed - m_pendingAmountSent - 1;80 if (m_pendingAmountSent + len > m_maxPendingSendAllowed) 81 len = m_maxPendingSendAllowed - m_pendingAmountSent; 82 82 83 83 if (len <= 0) … … 99 99 m_socket->close(); 100 100 } 101 101 102 102 void SocketStreamHandleInternal::didOpenStream(WebKit::WebSocketStreamHandle* socketHandle, int maxPendingSendAllowed) 103 103 {
Note: See TracChangeset
for help on using the changeset viewer.