Feature to dynamically disable PSL dataset from filesystem
Александр via curl-library <[email protected]>
| Newsgroups | gmane.comp.web.curl.library |
|---|---|
| Message-ID | <CAAeQ5L5UYBwWfN-PQaG752LYpr6it7nXRk8Hkc6vE392LgNw+Q@mail.gmail.com> |
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