Poštni seznam arhiviranih sporo?il

Od: "Massimo S." <ecs-isp@2rosenthals.com> Glava
Izvorno E-sporo?ilo
Zadeva: Re: [eCS-ISP] socket - no buffer space availble
Datum: Wed, 30 Jul 2025 10:02:43 +0200
Za: eCS ISP Mailing List <ecs-isp@2rosenthals.com>



Il 30/07/2025 01:25, Steven Levine ha scritto:
In <list-13712173@2rosenthals.com>, on 07/29/25
    at 07:45 PM, "Massimo S." <ecs-isp@2rosenthals.com> said:

Hi Massimo,

       0 STREAM           42164        http..80 217.182.195.225  FIN_WAIT_2
       0 STREAM           56842      https..443    103.42.4.140  FIN_WAIT_2
       0 STREAM           18331        http..80   51.68.111.239  FIN_WAIT_2
       0 STREAM           62505        http..80  91.225.160.193  FIN_WAIT_2

FIN_WAIT_2 has no universally mandated timeout in TCP protocol, so some
OSes keep these sockets indefinitely  without cleanup.

This may have been true at one time.  However, all the examples I'm seem
imply that the current default timeout is 60 seconds.  Also, looking that
the FreeBSD 3.2 sources which are very close to the code used to port the
stack we use, I'm pretty sure can see where the timeout is set to 2 times
the Maximum Segment Lifetime which would be 2 minutes on a system with the
default settings.

I add, that i've seen that even closing apache the hundreds of sockets
stay in FIN_WAIT_2 and do not disappear

How long did you wait?  I would not be surprised if the timeout was 2
minutes.

You can try the attached and see if it can deal with the sockets stuck in
FIN_WAIT_2.  It's basically a manual version of socktidy.  Run it as
CloseSocket and give it a list of sockets to close.

I've never tested it against FIN_WAIT_2 sockets, so it might have no
ettect.

Steven

Hi all,

all the FIN_WAIT_2 have 0 as socket number

if i use the scritp with:

soclose 0

i get this error:

soclose: SockClose 0 failed at line 175 on 30 Jul 2025 10:00:39.260000
soclose: gSock.!rc: -1 errno: ENOTSOCK h_errno: 1541

or

soclose FIN_WAIT_2

i get this error:

SYNTAX signaled at line 179 of C:\util\varie\soclose.cmd.
REXX error = 40 - Incorrect call to routine.
Source =   gSock.!rc = SockClose(gSock.!Socket)


in both cases nothing happened and FIN_WAIT_2 sockets are still there

massimo

Naro?iti: Poro?ilo (Feed), Izvle?ek (Digest), Indeks.
Odjava
E-pošta za mojstra za sezname