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
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
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
TCPSocketChild.h
TCPSocketParent.cpp
TCPSocketParent.h
UDPSocket.cpp
UDPSocket.h
UDPSocketChild.cpp
UDPSocketChild.h
UDPSocketParent.cpp
UDPSocketParent.h