Skip to content
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

Implement StreamReader.readuntil() method #1151

Closed
asvetlov opened this issue Sep 10, 2016 · 2 comments
Closed

Implement StreamReader.readuntil() method #1151

asvetlov opened this issue Sep 10, 2016 · 2 comments
Milestone

Comments

@asvetlov
Copy link
Member

Should be mimic to asyncio.StreamReader counterpart: https://docs.python.org/3/library/asyncio-stream.html#asyncio.StreamReader.readuntil

@fafhrd91 fafhrd91 added this to the 1.4 milestone Feb 8, 2017
@fafhrd91 fafhrd91 modified the milestones: 2.1, 2.0 Feb 17, 2017
@asvetlov
Copy link
Member Author

Looks like nobody need it.
Feel free to reopen the issue with the use case

@yapith-suplari
Copy link

yapith-suplari commented Jul 1, 2019

@asvetlov I described my issue/use-case in #3881, but I'll summarize it here:

I'm pulling data from web services that don't provide response content-length and doesn't not have explicit EOF character. Under high concurrent network load, I'm seeing await read() returns partial data sometimes. I suspect that it catches its internal buffer empty and terminates prematurely. (Is this even possible? Let me know if I'm making bad assumptions here)

readuntil allows me to seek an explicit end-of-stream indicator if known and make aiohttp more reliable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants