From a478393759f302d3a55e62094ceb61e64ca610f4 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 6 Aug 2026 10:03:56 +0200 Subject: [PATCH] psl: update a comment to understandable English Closes #22502 --- lib/psl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/psl.c b/lib/psl.c index 195841f3a3..1e3efbb0fa 100644 --- a/lib/psl.c +++ b/lib/psl.c @@ -55,7 +55,8 @@ const psl_ctx_t *Curl_psl_use(struct Curl_easy *easy) Curl_share_lock(easy, CURL_LOCK_DATA_PSL, CURL_LOCK_ACCESS_SHARED); now_sec = Curl_pgrs_now(easy)->tv_sec; if(!pslcache->psl || pslcache->expires <= now_sec) { - /* Let a chance to other threads to do the job: avoids deadlock. */ + /* Release the shared lock so another thread can refresh the cache and + avoid deadlock. */ Curl_share_unlock(easy, CURL_LOCK_DATA_PSL); /* Update cache: this needs an exclusive lock. */