gecko-dev/dom/network
Ping Chen df52a8d25b Bug 1717185 - Fix mBufferedAmount and return value of send in TCPSocket. r=valentin
Previously, mBufferedAmount is only updated when copy complete. If I keep calling `send`, `NotifyCopyComplete` is only called after the last `send`.

This patch changes to update mBufferedAmount in every `send` call, so that it returns `false` correctly if buffer is full.

Differential Revision: https://phabricator.services.mozilla.com/D118258
2021-07-01 00:20:14 +00:00
..
interfaces Bug 1696776 - Expose error code in TCPSocketErrorEvent. r=valentin 2021-03-07 16:21:10 +00:00
tests Bug 1717185 - Fix mBufferedAmount and return value of send in TCPSocket. r=valentin 2021-07-01 00:20:14 +00:00
Connection.cpp
Connection.h
ConnectionMainThread.cpp
ConnectionMainThread.h
ConnectionWorker.cpp
ConnectionWorker.h
Constants.h
moz.build
PTCPServerSocket.ipdl
PTCPSocket.ipdl Bug 1696776 - Expose error code in TCPSocketErrorEvent. r=valentin 2021-03-07 16:21:10 +00:00
PUDPSocket.ipdl
TCPServerSocket.cpp
TCPServerSocket.h
TCPServerSocketChild.cpp
TCPServerSocketChild.h
TCPServerSocketParent.cpp
TCPServerSocketParent.h
TCPSocket.cpp Bug 1717185 - Fix mBufferedAmount and return value of send in TCPSocket. r=valentin 2021-07-01 00:20:14 +00:00
TCPSocket.h Bug 1717185 - Fix mBufferedAmount and return value of send in TCPSocket. r=valentin 2021-07-01 00:20:14 +00:00
TCPSocketChild.cpp Bug 1696776 - Expose error code in TCPSocketErrorEvent. r=valentin 2021-03-07 16:21:10 +00:00
TCPSocketChild.h
TCPSocketParent.cpp Bug 1696776 - Expose error code in TCPSocketErrorEvent. r=valentin 2021-03-07 16:21:10 +00:00
TCPSocketParent.h Bug 1696776 - Expose error code in TCPSocketErrorEvent. r=valentin 2021-03-07 16:21:10 +00:00
UDPSocket.cpp Bug 1708116 - Use NetAddr::InitFromString instead of PR_StringToNetAddr r=necko-reviewers,dragana 2021-05-10 09:26:01 +00:00
UDPSocket.h Bug 1678062 - Remove unnecessary includes. r=andi 2020-11-23 16:12:02 +00:00
UDPSocketChild.cpp
UDPSocketChild.h
UDPSocketParent.cpp
UDPSocketParent.h