sympa-community / sympa

Sympa, Mailing List Management Software
https://www.sympa.community/sympa
GNU General Public License v2.0
237 stars 94 forks source link

log_socket_type parameter should allow host, port, timeout options #1839

Open simonelbaz opened 1 month ago

simonelbaz commented 1 month ago

Hello,

I need to pass \%option as mentionned in https://perldoc.perl.org/Sys::Syslog#setlogsock().

It would allow sending logs to remote host, port and timeout.

Expected Behavior

"inet" value should allow host, port, timeout options.

Current Behavior

log_socket_type is checked against the following regex: if ($self->{_socket_type} =~ /^(unix|inet)$/i) {.

It is not useful for "inet" socket used towards remote servers.

Possible Solution

log_socket_type parameter should allow hash input.

Regards

ikedas commented 1 month ago

It is not useful for "inet" socket used towards remote servers.

The unix did not work on some environments including Solaris and inet (i.e. TCP or UDP bound for local host) had to be specified.

BTW making the full option available looks very meaningful. Thank you for suggestion!