client-replay-fix

This commit is contained in:
rjt-gupta 2018-12-01 18:23:10 +05:30
parent 6f893a83c0
commit 39e5ceb6cf
1 changed files with 2 additions and 0 deletions

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()