-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate stream.unread_data #3260
Comments
@kxepal I need your help aiohttp 3.5 is going to be the latest 3.x release; I'd like to deprecate the method now and remove it entirely in aiohttp 4.0 |
Ok, will do that, tomorrow (6.12). |
Thanks! |
That seems wouldn't be too easy. We relay too much on that stream I feel that I would have just to reimplement those stream unread logic on multipart side, what may be no very cool, but at least it will hold all the bits and not depend on foreign state. |
Yes, we can. For 4.0 we'll fix this issue. |
@kxepal thanks! |
Fixed by #3439 |
stream.unread_data()
is a leaking abstracton: it violates chunk boundaries at least.Aso, it prevents some optimizations.
The call is used in multipart. We already have
MultipartBodyReader._unread
buffer, replacementstream.unread_data()
wit appending toself._unread
looks feasible.The text was updated successfully, but these errors were encountered: