mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-12 23:45:05 +02:00
Add timeout for HTTP connection
This commit is contained in:
parent
8dd0689420
commit
3ab3581f84
4 changed files with 26 additions and 5 deletions
|
|
@ -52,6 +52,12 @@ GROUP.add_argument(
|
|||
action=BooleanOptionalAction,
|
||||
help="use plain text files for external links"
|
||||
)
|
||||
GROUP.add_argument(
|
||||
"--http-timeout",
|
||||
type=float,
|
||||
metavar="SECONDS",
|
||||
help="the timeout to use for HTTP requests"
|
||||
)
|
||||
|
||||
|
||||
def load(
|
||||
|
|
@ -72,6 +78,8 @@ def load(
|
|||
section["link_file_plaintext"] = str(args.link_file_plaintext)
|
||||
if args.videos is not None:
|
||||
section["videos"] = str(False)
|
||||
if args.http_timeout is not None:
|
||||
section["http_timeout"] = str(args.http_timeout)
|
||||
|
||||
parser["auth:kit-ilias-web"] = {}
|
||||
auth_section = parser["auth:kit-ilias-web"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue