curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder Daniel himself.

Feature to dynamically disable PSL dataset from filesystem

From: Александр via curl-library <curl-library_at_lists.haxx.se>
Date: Fri, 7 Aug 2026 23:06:28 +0300

Hi all.

At the moment (up to curl 8_21_0 version) libcurl uses psl library to check
public suffixes for cookie jar. Under the hood (at psl.c file) it uses
psl_latest method to get fresh psl dataset of suffixes, and switch back to
psl's builtin one if no files found. In general it's OK, but there are
cases (maybe not so widespread) when filesystem interaction is not
desirable (like performance drop) and we may not insist on freshly and
strict psl checks.

Maybe it's good idea to allow user to specify psl check strategy at
runtime? Like disable datasets from filesystem and use psl's
builtin/embedded one? And even to disable psl at all without rebuild?

P.S. if you are interested more in context, I am implementing support of
cookie jar in userver framework which is heavily based on libcurl, but
libcurl is executed in libev threads and it's highly undesirable to use any
filesystem operations on it like psl loading dataset. For curious more
information at here https://github.com/userver-framework/userver/pull/1292


-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2026-08-07