l0ng-ai
6c848b9a43
fix(database): connect without TLS when a Prefer handshake fails ( #4473 )
...
With SSL mode Prefer, a MySQL/PostgreSQL server whose TLS handshake fails (e.g. TLS 1.0/1.1 only) failed with "received fatal alert: HandshakeFailure", since sqlx only skips TLS when the server doesn't offer it. Prefer now retries once without TLS after a failed handshake (sqlx::Error::Tls or an I/O error carrying a rustls error), as libpq's sslmode=prefer does; the pool keeps the plain options. Fixes #4447
2026-11-19 17:30:57 +08:00
..
2026-11-19 17:04:27 +08:00
2026-10-22 18:55:10 +08:00
2026-11-05 14:21:50 +08:00
2026-11-19 17:07:13 +08:00
2026-11-08 19:25:50 +08:00
2026-11-17 13:06:31 +08:00
2026-11-17 19:10:13 +08:00
2026-11-19 17:25:21 +08:00
2026-11-18 09:29:59 +08:00
2026-11-19 17:23:30 +08:00
2026-11-19 17:30:57 +08:00
2026-11-19 04:30:10 +08:00
2026-11-19 04:48:15 +08:00
2026-11-19 17:23:30 +08:00
2026-11-04 18:46:23 +08:00
2026-11-11 22:18:48 +08:00
2026-11-11 19:30:15 +08:00
2026-11-19 17:25:21 +08:00
2026-11-17 00:43:05 +08:00
2026-11-19 01:05:09 +08:00
2026-11-11 19:25:09 +08:00
2026-11-18 23:05:05 +08:00
2026-11-11 17:43:07 +08:00
2026-11-17 10:05:41 +08:00
2026-11-19 11:40:53 +08:00
2026-11-19 17:25:21 +08:00
2026-11-19 09:01:27 +08:00
2026-11-05 20:25:22 +08:00
2026-11-19 04:48:15 +08:00
2026-11-16 04:39:58 +08:00
2026-11-19 00:09:06 +08:00
2026-11-19 17:23:44 +08:00
2026-11-11 17:22:57 +08:00
2026-11-19 17:07:13 +08:00
2026-11-19 00:20:38 +08:00
2026-11-17 16:22:24 +08:00
2026-11-19 17:06:31 +08:00
2026-11-17 10:05:41 +08:00
2026-11-18 23:21:04 +08:00
2026-11-18 09:29:59 +08:00
2026-11-18 16:57:29 +08:00
2026-11-19 11:40:53 +08:00
2026-11-19 17:22:52 +08:00
2026-11-19 01:05:09 +08:00
2026-11-19 17:03:54 +08:00
2026-11-18 22:59:48 +08:00