Commit 73f32fd
Fix: Explicitly set proxy for httpx client to prevent connection pool corruption (#166)
When running behind a proxy (e.g., Clash, V2Ray), the bot's polling loop
can get stuck even if HTTP_PROXY/HTTPS_PROXY environment variables are set.
The httpx connection pool becomes corrupted after network interruptions,
and the bot stops responding to messages while the process is still running.
This fix explicitly reads proxy from environment variables and passes it
to the Application builder via builder.proxy().
Co-authored-by: x3fwy <x3fwy@users.noreply.github.com>1 parent ba5a990 commit 73f32fd
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
67 | 79 | | |
68 | 80 | | |
69 | 81 | | |
| |||
0 commit comments