In multiple places in the code, String or &str are used for specifying paths, instead of OsStr or Path or other similar types.
Examples include:
ServerConf fields error_log, ca_file
Opt field conf
Listeners methods add_tls and add_uds
In most cases, paths are not required to be valid UTF-8.
It would be good to switch to use the correct types for these interfaces, or use a crate like camino and explicitly document that pingora only works with UTF-8 paths.
In multiple places in the code,
String
or&str
are used for specifying paths, instead ofOsStr
orPath
or other similar types.Examples include:
ServerConf
fieldserror_log
,ca_file
Opt
fieldconf
Listeners
methodsadd_tls
andadd_uds
In most cases, paths are not required to be valid UTF-8.
It would be good to switch to use the correct types for these interfaces, or use a crate like
camino
and explicitly document thatpingora
only works withUTF-8
paths.