mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-02 02:37:15 +00:00
Allow forever wait at end of message #1541
This commit is contained in:
parent
d51b8933b2
commit
eef97555d7
1 changed files with 3 additions and 1 deletions
|
|
@ -57,7 +57,9 @@ def write_values(fp, vals, actions, sofar=0, blocksize=BLOCKSIZE):
|
|||
while actions:
|
||||
a = actions.pop()
|
||||
if a[1] == "pause":
|
||||
time.sleep(a[2])
|
||||
time.sleep(
|
||||
FOREVER if a[2] == "f" else a[2]
|
||||
)
|
||||
elif a[1] == "disconnect":
|
||||
return True
|
||||
elif a[1] == "inject":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue