mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-31 19:16:29 +00:00
drop env var
This commit is contained in:
parent
88f6949097
commit
0a2859cf9a
1 changed files with 8 additions and 6 deletions
|
|
@ -3674,12 +3674,14 @@ class TelegramAdapter(BasePlatformAdapter):
|
|||
# Not a duplicate of write_timeout: PTB routes any request
|
||||
# carrying files to media_write_timeout instead, so the line
|
||||
# above never applied to an upload and every upload was pinned
|
||||
# to PTB's own 20s default. 60s covers Telegram's 50MB ceiling
|
||||
# on a ~7Mbps uplink; going higher only lengthens how long a
|
||||
# dead socket takes to report itself.
|
||||
"media_write_timeout": _env_float(
|
||||
"HERMES_TELEGRAM_HTTP_MEDIA_WRITE_TIMEOUT", 60.0
|
||||
),
|
||||
# to PTB's own 20s default. httpx budgets this per socket
|
||||
# write rather than across the upload, so it is stall
|
||||
# tolerance, not a size or bandwidth allowance — a slow but
|
||||
# steady uplink never accumulates against it. 60s rides out
|
||||
# the buffer stalls a congested link produces; going higher
|
||||
# only lengthens how long a dead socket takes to report
|
||||
# itself.
|
||||
"media_write_timeout": 60.0,
|
||||
}
|
||||
|
||||
# CLOSE_WAIT fd leak (#31599, same class as #18451): PTB's
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue