aio-libs / aiohttp

Asynchronous HTTP client/server framework for asyncio and Python
https://docs.aiohttp.org
Other
15.15k stars 2.02k forks source link

Feature request: socket write timeout #5546

Closed runminlook closed 1 month ago

runminlook commented 3 years ago

🐣 Is your feature request related to a problem? Please describe.

When uploading a big file, we cannot use timeout.total. We need timeout.sock_write.

💡 Describe the solution you'd like

Describe alternatives you've considered

📋 Additional context

webknjaz commented 3 years ago

Please fill out the form so we'd at least understand what you're trying to do and what your motivation might be. Be verbose, we can't guess what you had on your mind with this message.

Dreamsorcerer commented 3 years ago

I think you're saying that you need a sock_write timeout for uploads.

But, I'm not sure why total does not work for you.

@runminlook Can you provide an example to show why total cannot be used?