diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2015-05-31 16:54:14 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2015-05-31 16:54:14 +1200 |
commit | 73376e605a61fab239213da375a612ed7d3274b5 (patch) | |
tree | 651e1967080d24eb74828a1e0aef7cadf6303da2 /netlib/tcp.py | |
parent | 4ec181c1403670702c2f163062b92de4dec3d2cc (diff) | |
download | mitmproxy-73376e605a61fab239213da375a612ed7d3274b5.tar.gz mitmproxy-73376e605a61fab239213da375a612ed7d3274b5.tar.bz2 mitmproxy-73376e605a61fab239213da375a612ed7d3274b5.zip |
Save first byte timestamp for writers too.
Diffstat (limited to 'netlib/tcp.py')
-rw-r--r-- | netlib/tcp.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/netlib/tcp.py b/netlib/tcp.py index a705c95b..c8545d4f 100644 --- a/netlib/tcp.py +++ b/netlib/tcp.py @@ -147,6 +147,7 @@ class Writer(_FileLike): May raise NetLibDisconnect """ if v: + self.first_byte_timestamp = self.first_byte_timestamp or time.time() try: if hasattr(self.o, "sendall"): self.add_log(v) |