You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add ConnectionFailedTimeout to ConnectionFailureReason
Lori 0.12.0 adds ConnectionFailedTimeout to its
ConnectionFailureReason type. We pass the new variant through
to our own union so users can match on it when connection
timeouts are in use.
The upgrade also renames expect() to buffer_until() with new
types (Expect → BufferSize, None → Streaming).
## Add ConnectionFailedTimeout to ConnectionFailureReason
2
+
3
+
`ConnectionFailureReason` now includes `ConnectionFailedTimeout` for when a connection attempt times out before a TCP or TLS connection is established. If you have an exhaustive match on `ConnectionFailureReason`, you'll need to add the new arm:
@@ -138,7 +138,7 @@ Only one operation is in-flight at a time. The queue serializes execution. `quer
138
138
-`SSLMode` — union type `(SSLDisabled | SSLPreferred | SSLRequired)`. `SSLDisabled` is the default (plaintext). `SSLPreferred` wraps an `SSLContext val` and attempts SSL with plaintext fallback on server refusal (`sslmode=prefer`). `SSLRequired` wraps an `SSLContext val` and aborts on server refusal.
139
139
-`ErrorResponseMessage` — full PostgreSQL error with all standard fields
@@ -193,7 +193,7 @@ Tests live in the main `postgres/` package (private test classes), organized acr
193
193
194
194
## Supported PostgreSQL Features
195
195
196
-
**SSL/TLS:** Optional SSL negotiation via `SSLRequired` (mandatory) or `SSLPreferred` (fallback to plaintext on server refusal). CVE-2021-23222 mitigated via `expect(1)` before SSLRequest. Design: [discussion #76](https://github.com/ponylang/postgres/discussions/76).
196
+
**SSL/TLS:** Optional SSL negotiation via `SSLRequired` (mandatory) or `SSLPreferred` (fallback to plaintext on server refusal). CVE-2021-23222 mitigated via `buffer_until(BufferSize)` before SSLRequest. Design: [discussion #76](https://github.com/ponylang/postgres/discussions/76).
197
197
198
198
**Authentication:** MD5 password and SCRAM-SHA-256. No SCRAM-SHA-256-PLUS (channel binding), Kerberos, GSS, or certificate auth. Design: [discussion #83](https://github.com/ponylang/postgres/discussions/83).
0 commit comments