Skip to content

Conversation

sunng87
Copy link
Contributor

@sunng87 sunng87 commented Oct 19, 2025

Description of Changes

Hello team, I'm the original author of pgwire library. In this patch, I have some updates about spacetimedb's usage of pgwire library:

  • Updated pgwire library to 0.34, which includes a critical fix for busy loop on accepting new connection
  • This version will return error on no-op handlers, as requested by @mamcx
  • Update StartupHandler for SslRequest. SslRequest is handled in process_socket automatically before StartupHandler kicks in. So it's safe to remove the match branch. The framework will reject TLS negotiation automatically if no TLS support compiled
  • Updated feature flags. Add no-default-features so we will not pull TLS dependencies.

API and ABI breaking changes

N/A

Expected complexity level and risk

1

Testing

Would be nice to verify if you have integration test on postgres interface.

@CLAassistant
Copy link

CLAassistant commented Oct 19, 2025

CLA assistant check
All committers have signed the CLA.

@bfops bfops requested a review from mamcx October 20, 2025 16:25
@bfops
Copy link
Collaborator

bfops commented Oct 20, 2025

Thank you for opening this! We'll work on getting it reviewed.

@sunng87 sunng87 mentioned this pull request Oct 21, 2025
2 tasks
Copy link
Contributor

@mamcx mamcx left a comment

Choose a reason for hiding this comment

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

LGTM

@bfops bfops added this pull request to the merge queue Oct 21, 2025
Merged via the queue into clockworklabs:master with commit d205795 Oct 21, 2025
18 of 20 checks passed
bfops added a commit that referenced this pull request Oct 22, 2025
bfops pushed a commit that referenced this pull request Oct 22, 2025
…ow we disable ssl (#3432)

# Description of Changes

Hello team, I'm the original author of pgwire library. In this patch, I
have some updates about spacetimedb's usage of pgwire library:

- Updated pgwire library to 0.34, which includes a critical fix for busy
loop on accepting new connection
- This version will return error on no-op handlers, as requested by
@mamcx
- Update `StartupHandler` for `SslRequest`. `SslRequest` is handled in
`process_socket` automatically before `StartupHandler` kicks in. So it's
safe to remove the match branch. The framework will reject TLS
negotiation automatically if no TLS support compiled
- Updated feature flags. Add `no-default-features` so we will not pull
TLS dependencies.

# API and ABI breaking changes

N/A

# Expected complexity level and risk

1

# Testing

Would be nice to verify if you have integration test on postgres
interface.

---------

Co-authored-by: Mario Montoya <[email protected]>
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.

4 participants