GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Hard break if found data after last boundary on `MultipartParser` by Kludex · Pull Request #189 · Kludex/python-multipart

Conversation

@Kludex

@Kludex Kludex commented Nov 24, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Owner

@defnull Can you review this? This is part of your PR, but I think it already solves the issue mentioned.

  • Closes Question about the package #162

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Kludex
Hard break if found data after last boundary on MultipartParser
2fa9ce9
@defnull

defnull commented Nov 26, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

LGTM, but only fixes half the issue. Maybe also remove the log line from the preamble (the if MultipartState.START block) and see how that performs? Or somehow make sure the log is only emitted once?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Kludex
Stop sending logger.debug when skipping newlines before boundary
e8c802c
@Kludex

Kludex commented Nov 26, 2024

Copy link
Copy Markdown
Owner Author

LGTM, but only fixes half the issue. Maybe also remove the log line from the preamble (the if MultipartState.START block) and see how that performs? Or somehow make sure the log is only emitted once?

It did improve the performance. Thanks.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@defnull defnull mentioned this pull request Nov 28, 2024
Speed up processing junk before or after first or last boundary #178
Closed
@Kludex
Kludex merged commit 9205a0e into master Nov 28, 2024
@Kludex
Kludex deleted the break-after-founding-last-boundary branch November 28, 2024 19:10
@Kludex Kludex mentioned this pull request Apr 10, 2026
Silently discard epilogue data after the closing boundary #259
Merged
4 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Question about the package

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@Kludex @defnull
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.