We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For Pgx, I want to attempt to upgrade connections to TLS (#391) if support is enabled, but skip STARTTLS if we can't do TLS anyway.
Right now my code to do this tries to configure TLS and catches exceptions, but I'm wondering if there's a more idiomatic way of doing this:
let upgrade_ssl = try let config = Conduit_async.V1.Conduit_async_ssl.Ssl_config.configure () in `Supported (fun in_channel out_channel -> Conduit_async.V1.Conduit_async_ssl.ssl_connect config in_channel out_channel) with _ -> `Not_supported
The text was updated successfully, but these errors were encountered:
No branches or pull requests
For Pgx, I want to attempt to upgrade connections to TLS (#391) if support is enabled, but skip STARTTLS if we can't do TLS anyway.
Right now my code to do this tries to configure TLS and catches exceptions, but I'm wondering if there's a more idiomatic way of doing this:
The text was updated successfully, but these errors were encountered: