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

Prevent sending multiple or mixed responses on a single request #2327

Merged
merged 72 commits into from Dec 9, 2021

Conversation

ChihweiLHBird
Copy link
Member

@ChihweiLHBird ChihweiLHBird commented Dec 2, 2021

Previous PR thread was getting long. This is a new implementation includes the logic that prevents second request.respond call.

Let's summarize what we expect to be done in this PR and work toward that. Also, the future works planned. Sounds good? @Tronic @ahopkins

I think most comments were resolved here, but I may miss some either not sure about the implementation or forget.

Previous PR: #2323

@ChihweiLHBird ChihweiLHBird marked this pull request as ready for review December 8, 2021 06:50
@ChihweiLHBird
Copy link
Member Author

Hey @Tronic @ahopkins, tests were added, and one change to app.py between line 917-928 was added after @Tronic's review. It would need a second look. Please let me know if there is any other issue. Thank you all!

Copy link
Member

@ahopkins ahopkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Just a couple comments about cleaning up the error messaging, then I think we are ready to merge.

sanic/app.py Outdated Show resolved Hide resolved
sanic/app.py Outdated Show resolved Hide resolved
sanic/response.py Outdated Show resolved Hide resolved
sanic/app.py Outdated Show resolved Hide resolved
sanic/app.py Outdated Show resolved Hide resolved
@ahopkins ahopkins merged commit 96c027b into sanic-org:main Dec 9, 2021
ChihweiLHBird added a commit to ChihweiLHBird/sanic that referenced this pull request Jun 1, 2022
…c-org#2327)

Co-authored-by: Adam Hopkins <adam@amhopkins.com>
Co-authored-by: Adam Hopkins <admhpkns@gmail.com>
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

Successfully merging this pull request may close these issues.

None yet

3 participants