diff options
Diffstat (limited to 'pathod')
-rwxr-xr-x | pathod | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -88,7 +88,8 @@ def main(parser, args): noweb = args.noweb, nocraft = args.nocraft, noapi = args.noapi, - nohang = args.nohang + nohang = args.nohang, + timeout = args.timeout ) except pathod.PathodError, v: parser.error(str(v)) @@ -135,6 +136,10 @@ if __name__ == "__main__": help='Serve with SSL.' ) parser.add_argument( + "-t", dest="timeout", type=int, default=None, + help="Connection timeout" + ) + parser.add_argument( "--limit-size", dest='sizelimit', default=None, type=str, help='Size limit of served responses. Understands size suffixes, i.e. 100k.' ) |