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

detect seekable wsgi.input and use it instead of making another copy #416

Open
mmerickel opened this issue Jul 7, 2020 · 1 comment
Open

Comments

@mmerickel
Copy link
Member

Waitress explicitly provides a seekable input object, and thus webob may not need to directly copy it. I'm not sure how safe / reliable it is to feature detect this situation, but if it provides seek/tell methods then it's probably worth relying on.

related: Pylons/pyramid#3599

@ztane
Copy link

ztane commented Oct 21, 2021

I guess one should try to seek it too. I could imagine it being some kind of pipe or similar that does have seek because it just does, but seek throwing error.

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

2 participants