[asterisk-bugs] [Asterisk 0015627]: Asterisk runs out of sockets

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Aug 12 01:01:16 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15627 
====================================================================== 
Reported By:                falves11
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15627
Category:                   Core/Netsock
Reproducibility:            always
Severity:                   block
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.2 
SVN Revision (number only!): 209626 
Request Review:              
====================================================================== 
Date Submitted:             2009-07-31 17:12 CDT
Last Modified:              2009-08-12 01:01 CDT
====================================================================== 
Summary:                    Asterisk runs out of sockets
Description: 
The Parallels engineers have found a bug that takes down asterisk because
the server runs out of sockets, and also it degrades the performance
because over time it takes more and more time for the processor to find an
empty socket. The load on the processor grows over time,

====================================================================== 

---------------------------------------------------------------------- 
 (0108929) falves11 (reporter) - 2009-08-12 01:01
 https://issues.asterisk.org/view.php?id=15627#c108929 
---------------------------------------------------------------------- 
This bug that is actually taking me down daily. 
Suppose you have a carrier that is out of the network, simply disappeared.
His connection is down. Well, Asterisk sends an INVITE 5 times, and then 
it keeps for ever the dialog open in "sip show channels", although there is
nothing in "show channels". Furthermore, it keeps for ever the UDP ports
taken from the OS, and thus it can take down the whole server because if
you have thousands of calls going through, soon you will exhaust the Linux
UDP port space. It happened to me yesterday.
It is very easy to reproduce. Just sent an INVITE to my home address which
is down, 72.187.243.97, and do a "sip set debug ip 72.187.243.97". Then
after you see the INVITE being retransmitted 5 times, simply hang-up. You
may then issue a "sip show channels" and a "show channels". Then exit
Asterisk and type "lsof -i | grep UDP". Those ports stay open for ever.
Asterisk must kill the dialog and release the resources taken by the OS or
else the finite state machine is bound to go down and take down the OS at
some point.

My is 1.4 SVN, so I think every version is affected. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-08-12 01:01 falves11       Note Added: 0108929                          
======================================================================




More information about the asterisk-bugs mailing list