From: "Massimo S." Received: from [192.168.100.201] (HELO mail.2rosenthals.com) by 2rosenthals.com (CommuniGate Pro SMTP 5.4.10) with ESMTP id 13730073 for ecs-isp@2rosenthals.com; Wed, 30 Jul 2025 04:03:19 -0400 Received: from [192.168.200.201] (port=53956 helo=mail2.2rosenthals.com) by mail.2rosenthals.com with esmtp (Exim 4.97.1) (envelope-from ) id 1uh1mI-000000007aP-1jJO for ecs-isp@2rosenthals.com; Wed, 30 Jul 2025 04:03:12 -0400 Received: from mail2.quasarbbs.net ([80.86.52.115]:10099) by mail2.2rosenthals.com with esmtp (Exim 4.97.1) (envelope-from ) id 1uh1mB-000000001eL-08xM for ecs-isp@2rosenthals.com; Wed, 30 Jul 2025 04:03:08 -0400 X-SASI-Hits: BODYTEXTP_SIZE_3000_LESS 0.000000, BODY_SIZE_2000_2999 0.000000, BODY_SIZE_5000_LESS 0.000000, BODY_SIZE_7000_LESS 0.000000, CTE_8BIT 0.000000, DKIM_ALIGNS 0.000000, DKIM_SIGNATURE 0.000000, HTML_00_01 0.050000, HTML_00_10 0.050000, IN_REP_TO 0.000000, LEGITIMATE_SIGNS 0.000000, MSGID_SAMEAS_FROM_HEX_844412 0.100000, MSG_THREAD 0.000000, NO_CTA_URI_FOUND 0.000000, NO_URI_HTTPS 0.000000, REFERENCES 0.000000, REPLYTO_SAMEAS_FROM 0.000000, SENDER_NO_AUTH 0.000000, SUSP_DH_NEG 0.000000, TO_IN_SUBJECT 0.500000, USER_AGENT 0.000000, __ANY_URI 0.000000, __ATTACHMENT_PHRASE 0.000000, __BODY_NO_MAILTO 0.000000, __BODY_VOICEMAIL 0.000000, __BOUNCE_CHALLENGE_SUBJ 0.000000, __BOUNCE_NDR_SUBJ_EXEMPT 0.000000, __CT 0.000000, __CTE 0.000000, __CT_TEXT_PLAIN 0.000000, __DKIM_ALIGNS_1 0.000000, __DKIM_ALIGNS_2 0.000000, __DQ_NEG_DOMAIN 0.000000, __DQ_NEG_HEUR 0.000000, __DQ_NEG_IP 0.000000, __FORWARDED_MSG 0.000000, __FROM_DOMAIN_NOT_IN_BODY 0.000000, __FROM_NAME_NOT_IN_ADDR 0.000000, __FROM_NAME_NOT_IN_BODY 0.000000, __FUR_HEADER 0.000000, __HAS_FROM 0.000000, __HAS_MSGID 0.000000, __HAS_REFERENCES 0.000000, __HAS_REPLYTO 0.000000, __HEADER_ORDER_FROM 0.000000, __IN_REP_TO 0.000000, __IOC_PHRASE 0.000000, __MAIL_CHAIN 0.000000, __MIME_BOUND_CHARSET 0.000000, __MIME_TEXT_ONLY 0.000000, __MIME_TEXT_P 0.000000, __MIME_TEXT_P1 0.000000, __MIME_VERSION 0.000000, __MOZILLA_USER_AGENT 0.000000, __MSGID_HEX_844412 0.000000, __NO_HTML_TAG_RAW 0.000000, __REFERENCES 0.000000, __REPLYTO_SAMEAS_FROM_ACC 0.000000, __REPLYTO_SAMEAS_FROM_ADDY 0.000000, __REPLYTO_SAMEAS_FROM_DOMAIN 0.000000, __SANE_MSGID 0.000000, __SCAN_D_NEG 0.000000, __SCAN_D_NEG2 0.000000, __SCAN_D_NEG_HEUR 0.000000, __SCAN_D_NEG_HEUR2 0.000000, __SUBJ_ALPHA_END 0.000000, __SUBJ_ALPHA_NEGATE 0.000000, __SUBJ_REPLY 0.000000, __TO_IN_SUBJECT 0.000000, __TO_MALFORMED_2 0.000000, __TO_NAME 0.000000, __TO_NAME_DIFF_FROM_ACC 0.000000, __TO_REAL_NAMES 0.000000, __URI_MAILTO 0.000000, __URI_NO_WWW 0.000000, __URI_NS 0.000000, __USER_AGENT 0.000000 X-SASI-Probability: 10% X-SASI-RCODE: 200 X-SASI-Version: Antispam-Engine: 5.1.4, AntispamData: 2025.7.30.72719 X-SASI-Hits: BODYTEXTP_SIZE_3000_LESS 0.000000, BODY_SIZE_2000_2999 0.000000, BODY_SIZE_5000_LESS 0.000000, BODY_SIZE_7000_LESS 0.000000, CTE_8BIT 0.000000, DKIM_ALIGNS 0.000000, DKIM_SIGNATURE 0.000000, HTML_00_01 0.050000, HTML_00_10 0.050000, IN_REP_TO 0.000000, LEGITIMATE_SIGNS 0.000000, MSGID_SAMEAS_FROM_HEX_844412 0.100000, MSG_THREAD 0.000000, NO_CTA_URI_FOUND 0.000000, NO_URI_HTTPS 0.000000, REFERENCES 0.000000, REPLYTO_SAMEAS_FROM 0.000000, SUSP_DH_NEG 0.000000, TO_IN_SUBJECT 0.500000, USER_AGENT 0.000000, __ANY_URI 0.000000, __ATTACHMENT_PHRASE 0.000000, __AUTH_RES_PASS 0.000000, __BODY_NO_MAILTO 0.000000, __BODY_VOICEMAIL 0.000000, __BOUNCE_CHALLENGE_SUBJ 0.000000, __BOUNCE_NDR_SUBJ_EXEMPT 0.000000, __CT 0.000000, __CTE 0.000000, __CT_TEXT_PLAIN 0.000000, __DKIM_ALIGNS_1 0.000000, __DKIM_ALIGNS_2 0.000000, __DQ_NEG_DOMAIN 0.000000, __DQ_NEG_HEUR 0.000000, __DQ_NEG_IP 0.000000, __FORWARDED_MSG 0.000000, __FROM_DOMAIN_NOT_IN_BODY 0.000000, __FROM_NAME_NOT_IN_ADDR 0.000000, __FROM_NAME_NOT_IN_BODY 0.000000, __FUR_HEADER 0.000000, __HAS_FROM 0.000000, __HAS_MSGID 0.000000, __HAS_REFERENCES 0.000000, __HAS_REPLYTO 0.000000, __HEADER_ORDER_FROM 0.000000, __IN_REP_TO 0.000000, __IOC_PHRASE 0.000000, __MAIL_CHAIN 0.000000, __MIME_BOUND_CHARSET 0.000000, __MIME_TEXT_ONLY 0.000000, __MIME_TEXT_P 0.000000, __MIME_TEXT_P1 0.000000, __MIME_VERSION 0.000000, __MOZILLA_USER_AGENT 0.000000, __MSGID_HEX_844412 0.000000, __NO_HTML_TAG_RAW 0.000000, __REFERENCES 0.000000, __REPLYTO_SAMEAS_FROM_ACC 0.000000, __REPLYTO_SAMEAS_FROM_ADDY 0.000000, __REPLYTO_SAMEAS_FROM_DOMAIN 0.000000, __SANE_MSGID 0.000000, __SCAN_D_NEG 0.000000, __SCAN_D_NEG2 0.000000, __SCAN_D_NEG_HEUR 0.000000, __SCAN_D_NEG_HEUR2 0.000000, __SUBJ_ALPHA_END 0.000000, __SUBJ_ALPHA_NEGATE 0.000000, __SUBJ_REPLY 0.000000, __TO_IN_SUBJECT 0.000000, __TO_MALFORMED_2 0.000000, __TO_NAME 0.000000, __TO_NAME_DIFF_FROM_ACC 0.000000, __TO_REAL_NAMES 0.000000, __URI_MAILTO 0.000000, __URI_NO_WWW 0.000000, __URI_NS 0.000000, __USER_AGENT 0.000000 X-SASI-Probability: 10% X-SASI-RCODE: 200 X-SASI-Version: Antispam-Engine: 5.1.4, AntispamData: 2025.7.30.72719 DKIM-Signature: v=1; q=dns/txt; a=rsa-sha256; c=relaxed/relaxed; s=default; d=ecomstation.it; bh=zpVcy61r6WcY28UkgyEsz0S4n+6sKL9edquG043nAOg=; h=Return-Path:From:To:Subject:Date:Message-ID; b=VK4UjUWaB1FpBs5/BKNOpJblhm0CW06UtcHww7pfZ5yoJcHJ4PcweEcWWFHnJzMBqiNL9 nZLVhuUKEhM1Uqdt9rX269LH9xAGJ8kSzYH36QtR2NKot7u9hh+ZgCjWuENgi84xdDXSTbm RMveq1SwIIrXY5luXNQUCuWz5kd+P6cEUZtPd5mePCtYLeY3R5xd1GrLx0Qyfr0Ij6pdwLg aun+s1FuULCzZ8ntJCNRIonXTiyAXiIJ5oPrW41N7TdCb8pc71BM8b/FZkrzj1foyPXuxcr +zesJFCp9xnLV3dRXnr9ov59x/wyC57b+GEgF7DATYoIo5Jqv17xcUfJQ6TQ== Received: from [192.168.10.199] (dtp [192.168.10.199]) by srv2 (Weasel v3.05012) for ; Wed, 30 Jul 2025 10:02:45 -0000 Reply-To: ml@ecomstation.it Subject: Re: [eCS-ISP] socket - no buffer space availble To: eCS ISP Mailing List References: Organization: Massimo S. Message-ID: <7e9d5ee0-f58d-7c58-3a75-900f8ed8286b@ecomstation.it> Date: Wed, 30 Jul 2025 10:02:43 +0200 User-Agent: Mozilla/5.0 (OS/2; U; Warp 4.5; it-IT; rv:1.7.13) Gecko/20060424 Thunderbird/1.0.8 Mnenhy/0.7.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Language: it Content-Transfer-Encoding: 8bit Il 30/07/2025 01:25, Steven Levine ha scritto: > In , on 07/29/25 > at 07:45 PM, "Massimo S." 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