astral-sh
uv
BlogDocsChangelog

Fix infinite loop when `SSL_CERT_FILE` is a directory

#17503
Comparing
zaniebot:claude/investigate-issues-tN0fc
(
f13b44c
) with
main
(
a475c72
)
CodSpeed Performance Gauge
+1%
Untouched
5
Ignored
1

Benchmarks

Passed

resolve_warm_jupyter_universal
crates/uv-bench/benches/uv.rs::uv::resolve_warm_jupyter_universal
CodSpeed Performance Gauge
+3%
212.4 ms206 ms
resolve_warm_jupyter
crates/uv-bench/benches/uv.rs::uv::resolve_warm_jupyter
CodSpeed Performance Gauge
+2%
75.2 ms73.5 ms
resolve_warm_jupyter_universal
crates/uv-bench/benches/uv.rs::uv::resolve_warm_jupyter_universal
CodSpeed Performance Gauge
0%
140.3 ms140.5 ms
resolve_warm_airflow
crates/uv-bench/benches/uv.rs::uv::resolve_warm_airflow
CodSpeed Performance Gauge
0%
467.5 ms469.5 ms
resolve_warm_jupyter
crates/uv-bench/benches/uv.rs::uv::resolve_warm_jupyter
CodSpeed Performance Gauge
-2%
42 ms42.8 ms

Ignored

resolve_warm_airflow
crates/uv-bench/benches/uv.rs::uv::resolve_warm_airflow
Ignored
CodSpeed Performance Gauge
+1%
807.1 ms802.8 ms

Commits

Click on a commit to change the comparison range
Base
main
a475c72
+0.58%
Fix infinite loop when SSL_CERT_FILE is a directory When SSL_CERT_FILE points to a directory instead of a file, the code previously only checked if the path exists, which returns true for directories. This caused rustls-native-certs to attempt reading the directory as a certificate file, resulting in an infinite memory allocation loop. The fix validates that SSL_CERT_FILE is an actual file before enabling native TLS certificate loading, and provides a helpful warning message when the path is not a file. Closes #17494
f13b44c
15 hours ago
by claude
© 2026 CodSpeed Technology
Home Terms Privacy Docs