In a server (OpenBSD amd64 5.7) with many concurrent perl programs that have to open a lot of SSH connections, I get many errors like this:

connect() on closed socket GEN136 at /usr/local/libdata/perl5/site_perl/Net/SSH/Perl.pm line 216.

Maybe at some point no more sockets can be opened because of some limit is reached?

I already tried to set these in sysctl.conf:

    kern.maxfiles=20000
    kern.somaxconn=1024

And set this in login.conf:

    openfiles-cur=1024

But it didn't solved.

Any suggestion of what a can look at?

Thanks.

Reply via email to