-
Notifications
You must be signed in to change notification settings - Fork 6k
Labels
📋 help-wantedwork status: help-wantedwork status: help-wanted
Description
To improve the networking backend, we would like to set socketopts if possible. Before the asyncio switch, we did something like
python-telegram-bot/telegram/request/_httpxrequest.py
Lines 164 to 168 in ad5a1fb
| # TODO p0: On Linux, use setsockopt to properly set socket level keepalive. | |
| # (socket.IPPROTO_TCP, socket.TCP_KEEPIDLE, 120) | |
| # (socket.IPPROTO_TCP, socket.TCP_KEEPINTVL, 30) | |
| # (socket.IPPROTO_TCP, socket.TCP_KEEPCNT, 8) | |
| # TODO p4: Support setsockopt on lesser platforms than Linux. |
It would be nice if we could do that for httpx as well at some point.
Metadata
Metadata
Assignees
Labels
📋 help-wantedwork status: help-wantedwork status: help-wanted