summaryrefslogtreecommitdiff
path: root/src/env.h
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2018-03-17 17:52:57 +0100
committerAnna Henningsen <anna@addaleax.net>2018-03-30 14:20:40 +0200
commit923fb5cc1861422291d135177770f94f473f4d6f (patch)
tree7900acd97fa0c6c8f42b56382afb1597f026f384 /src/env.h
parentabc87862ff14c1571f008aa1a9cbf812bea9790c (diff)
downloadandroid-node-v8-923fb5cc1861422291d135177770f94f473f4d6f.tar.gz
android-node-v8-923fb5cc1861422291d135177770f94f473f4d6f.tar.bz2
android-node-v8-923fb5cc1861422291d135177770f94f473f4d6f.zip
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. PR-URL: https://github.com/nodejs/node/pull/19551 Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/env.h')
-rw-r--r--src/env.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/env.h b/src/env.h
index 19079aa5f0..75c530af45 100644
--- a/src/env.h
+++ b/src/env.h
@@ -117,6 +117,7 @@ struct PackageConfig {
V(bytes_string, "bytes") \
V(bytes_parsed_string, "bytesParsed") \
V(bytes_read_string, "bytesRead") \
+ V(bytes_written_string, "bytesWritten") \
V(cached_data_string, "cachedData") \
V(cached_data_produced_string, "cachedDataProduced") \
V(cached_data_rejected_string, "cachedDataRejected") \