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

feat(proxy): optimizing the chances of large write in copy_bidirectional #10608

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

conradludgate
Copy link
Contributor

We forked copy_bidirectional to solve some issues like fast-shutdown (disallowing half-open connections) and to introduce better error tracking (which side of the conn closed down).

A change recently made its way upstream offering performance improvements: tokio-rs/tokio#6532. These seem applicable to our fork, thus it makes sense to apply them here as well.

@conradludgate conradludgate requested a review from a team as a code owner January 31, 2025 11:55
@conradludgate conradludgate requested a review from awarus January 31, 2025 11:55
Copy link

7414 tests run: 7062 passed, 0 failed, 352 skipped (full report)


Flaky tests (1)

Postgres 17

Code coverage* (full report)

  • functions: 33.4% (8518 of 25538 functions)
  • lines: 49.1% (71522 of 145575 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
57633ce at 2025-01-31T14:14:22.269Z :recycle:

Copy link
Contributor

@awarus awarus left a comment

Choose a reason for hiding this comment

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

Can't say number-wise, but the change seems reasonable

@conradludgate conradludgate added this pull request to the merge queue Jan 31, 2025
Merged via the queue into main with commit ad1a411 Jan 31, 2025
86 checks passed
@conradludgate conradludgate deleted the conrad/optimise-passthrough branch January 31, 2025 19:21
winter-loo pushed a commit to winter-loo/neon that referenced this pull request Feb 4, 2025
…nal (neondatabase#10608)

We forked copy_bidirectional to solve some issues like fast-shutdown
(disallowing half-open connections) and to introduce better error
tracking (which side of the conn closed down).

A change recently made its way upstream offering performance
improvements: tokio-rs/tokio#6532. These seem
applicable to our fork, thus it makes sense to apply them here as well.
@awarus awarus mentioned this pull request Feb 6, 2025
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