Unverified Commit b7cfd278 authored by Anna Henningsen's avatar Anna Henningsen
Browse files

src: clean up `req.bytes` tracking

Simply always tell the caller how many bytes were written, rather
than letting them track it.

In the case of writing a string, also keep track of the bytes
written by the earlier `DoTryWrite()`.

Refs: https://github.com/nodejs/node/issues/19562

PR-URL: https://github.com/nodejs/node/pull/19551


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
parent 1dc8eb4b
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment