Re: (OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted

jean-frederic clere <[email protected]>
Newsgroups gmane.comp.apache.devel
Message-ID <[email protected]>
On 2/11/25 2:24 PM, Yann Ylavic wrote:
> On Fri, Feb 7, 2025 at 5:56 PM jean-frederic clere <[email protected]> wrote:
>>
>> I have the above error on windows:
>> +++
>> [Fri Feb 07 08:46:33.110167 2025] [proxy:debug] [pid 7440:tid 1168]
>> mod_proxy.c(1465): [client ::1:56280] AH01143: Running scheme balancer
>> handler (attempt 0)
>> [Fri Feb 07 08:46:33.110167 2025] [proxy_ajp:debug] [pid 7440:tid 1168]
>> mod_proxy_ajp.c(790): [client ::1:56280] AH00895: serving URL
>> ajp://[0:0:0:0:0:0:0:1]/
>> [Fri Feb 07 08:46:33.110167 2025] [proxy:debug] [pid 7440:tid 1168]
>> proxy_util.c(2797): AH00942: AJP: has acquired connection for
>> (0:0:0:0:0:0:0:1:8009)
>> [Fri Feb 07 08:46:33.110167 2025] [proxy:debug] [pid 7440:tid 1168]
>> proxy_util.c(3242): [client ::1:56280] AH00944: connecting
>> ajp://[0:0:0:0:0:0:0:1]/ to 0:0:0:0:0:0:0:1:8009
>> [Fri Feb 07 08:46:33.110167 2025] [proxy:debug] [pid 7440:tid 1168]
>> proxy_util.c(3450): [client ::1:56280] AH00947: connecting / to
>> [::1]:8009 (0:0:0:0:0:0:0:1:8009)
>> [Fri Feb 07 08:46:33.110167 2025] [proxy:error] [pid 7440:tid 2552] (OS
>> 10048)Only one usage of each socket address (protocol/network
>> address/port) is normally permitted.  : AH00957: AJP: attempt to connect
>> to [::1]:8009 (0:0:0:0:0:0:0:1:8009) failed
>> [Fri Feb 07 08:46:33.110167 2025] [proxy:error] [pid 7440:tid 2552]
>> AH00959: ap_proxy_connect_backend disabling worker for
>> (0:0:0:0:0:0:0:1:8009) for 60s
>> [Fri Feb 07 08:46:33.110167 2025] [proxy_ajp:error] [pid 7440:tid 2552]
>> [client ::1:49653] AH00896: failed to make connection to backend:
>> 0:0:0:0:0:0:0:1
>> [Fri Feb 07 08:46:33.110167 2025] [proxy:debug] [pid 7440:tid 2552]
>> proxy_util.c(2813): AH00943: AJP: has released connection for
>> (0:0:0:0:0:0:0:1:8009)
>> +++
>>
>> Does that ring bell to someone? I am using 2.4.x and my own build on
>> windows (windows server 2019)
> 
> "(OS 10048)" seems to be the "ephemeral ports exhausted" error on
> Windows, so maybe [0] can help?

According to my tests for some reasons ap_proxy_release_connection() now 
does an apr_pool_clear() and was doing a connection_cleanup() before 2.4.58.

> 
> [0] https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/default-dynamic-port-range-tcpip-chang
> helps
> 
> Regards;
> Yann.


-- 
Cheers

Jean-Frederic
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.