From 73376e605a61fab239213da375a612ed7d3274b5 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 31 May 2015 16:54:14 +1200 Subject: [PATCH] Save first byte timestamp for writers too. --- netlib/tcp.py | 1 + 1 file changed, 1 insertion(+) diff --git a/netlib/tcp.py b/netlib/tcp.py index a705c95b0..c8545d4f2 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)