aboutsummaryrefslogtreecommitdiffstats
path: root/pathod
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-07-26 20:01:51 +1200
committerAldo Cortesi <aldo@nullcube.com>2012-07-26 20:01:51 +1200
commit3e158211a830bbcba2dd463189a79ec3ad17c8d4 (patch)
treeb61133ad71a153d77289b408f886de42f79d56b0 /pathod
parentb879890412041e7364a294151a3a8aef5fb62e48 (diff)
downloadmitmproxy-3e158211a830bbcba2dd463189a79ec3ad17c8d4.tar.gz
mitmproxy-3e158211a830bbcba2dd463189a79ec3ad17c8d4.tar.bz2
mitmproxy-3e158211a830bbcba2dd463189a79ec3ad17c8d4.zip
Add a --nohang flag that turns off pauses in response generation.
Diffstat (limited to 'pathod')
-rwxr-xr-xpathod7
1 files changed, 6 insertions, 1 deletions
diff --git a/pathod b/pathod
index df044ae7..56f6e3fe 100755
--- a/pathod
+++ b/pathod
@@ -35,6 +35,10 @@ if __name__ == "__main__":
help='Disable API.'
)
parser.add_argument(
+ "--nohang", dest='nohang', default=False, action="store_true",
+ help='Disable pauses during crafted response generation.'
+ )
+ parser.add_argument(
"--noweb", dest='noweb', default=False, action="store_true",
help='Disable both web interface and API.'
)
@@ -100,7 +104,8 @@ if __name__ == "__main__":
sizelimit = sizelimit,
noweb = args.noweb,
nocraft = args.nocraft,
- noapi = args.noapi
+ noapi = args.noapi,
+ nohang = args.nohang
)
except pathod.PathodError, v:
parser.error(str(v))