psl: update a comment to understandable English

Closes #22502
This commit is contained in:
Daniel Stenberg 2026-08-06 10:03:56 +02:00
parent b5716286e9
commit a478393759
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -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. */