Skip to content

[python] use ThreadingHTTPServer to handle concurrent requests#12578

Merged
QuiiBz merged 1 commit intomainfrom
python/use-threadinghttpserver
Nov 14, 2024
Merged

[python] use ThreadingHTTPServer to handle concurrent requests#12578
QuiiBz merged 1 commit intomainfrom
python/use-threadinghttpserver

Conversation

@QuiiBz
Copy link
Copy Markdown
Member

@QuiiBz QuiiBz commented Nov 14, 2024

Follow-up to #12557

Python's HTTPServer handles requests sequentially, even if we send multiple requests at the same time. Switch to ThreadingHTTPServer to handle requests concurrently when using streaming.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Nov 14, 2024

🦋 Changeset detected

Latest commit: 02a9356

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@vercel/python Patch
vercel Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@QuiiBz QuiiBz enabled auto-merge November 14, 2024 09:03
@QuiiBz QuiiBz added this pull request to the merge queue Nov 14, 2024
Merged via the queue into main with commit 0b531f7 Nov 14, 2024
@QuiiBz QuiiBz deleted the python/use-threadinghttpserver branch November 14, 2024 09:17
trek pushed a commit that referenced this pull request Nov 14, 2024
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## [email protected]

### Patch Changes

- Updated dependencies
\[[`0b531f711bac986053bf7ad9b5c316375f1c9bf3`](0b531f7)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Use a ThreadingHTTPServer to handle concurrent requests
([#12578](#12578))

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
QuietCraftsmanship pushed a commit to QuietCraftsmanship/Vercel that referenced this pull request Jul 6, 2025
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## [email protected]

### Patch Changes

- Updated dependencies
\[[`7461e360809215707af5107140484199916d723e`](vercel/vercel@7461e36)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Use a ThreadingHTTPServer to handle concurrent requests
([#12578](vercel/vercel#12578))

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.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.

2 participants