Skip to content

net: track bytesWritten in C++ land

Move tracking of socket.bytesWritten to C++ land.

This makes it easier to provide this functionality for all StreamBase instances, and in particular should keep working when they have been 'consumed' in C++ in some way (e.g. for the network sockets that are underlying to TLS or HTTP2 streams).

Also, this parallels socket.bytesRead a lot more now.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading