Merge pull request #3401 from rjt-gupta/fix-replay-timestamps

client-replay-fix
This commit is contained in:
Thomas Kriechbaumer 2018-12-01 16:35:40 +01:00 committed by GitHub
commit 544f859925
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
import queue
import threading
import typing
import time
from mitmproxy import log
from mitmproxy import controller
@ -94,6 +95,7 @@ class RequestReplayThread(basethread.BaseThread):
server.wfile.write(http1.assemble_request(r))
server.wfile.flush()
r.timestamp_start = r.timestamp_end = time.time()
if f.server_conn:
f.server_conn.close()