Skip to content

Conversation

@philipmv
Copy link
Contributor

@philipmv philipmv commented Nov 12, 2025

This is just as an experiment may be it should be in a separate branch. Unfortunately ssl connection is removed.

@karlseguin
Copy link
Owner

I'm not really following along...is TLS not currently working in Zig-dev, or just not ported in this PR yet?

@philipmv
Copy link
Contributor Author

No, it's working. I just haven't looked into it and didn't port it. This PR is only useful if you are interested in using pg.zig with zig's new async io. It's very early, but someone may still be interested.

@lalinsky
Copy link

I was just looking at using pg.zig with my zio library, and though I could use this as the base, but it's very incomplete:

  • still uses threads, especially for the reconnector
  • timeouts need to be restored
  • openssl will be a bigger issue, will either need to migrate to std.Io.Reader and use std.crypto.tls, or use openssl BIO APIs.

I'll give it a try to refactor the lib to use standard reader/writer, which would allow it to use std.crypto, that might be the easiest option.

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.

3 participants