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

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Dec 9 00:32:20 CST 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:                   major
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           SVN 
JIRA:                       SWP-255 
Regression:                 No 
Reviewboard Link:            
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-12-09 00:32 CST
====================================================================== 
Summary:                    [patch] 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,

======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0015716 [patch] chan_sip fails to destroy chann...
related to          0016270 [patch] Asterisk doesn't free udp ports
related to          0012101 SIP channel hung due to CANCEL Reliable...
has duplicate       0016408 Asterisk runs out of handles because of...
related to          0016382 SIP OPTIONS qualify message forever
child of            0015356 After a few thousand calls, or at rando...
====================================================================== 

---------------------------------------------------------------------- 
 (0114963) dant (reporter) - 2009-12-09 00:32
 https://issues.asterisk.org/view.php?id=15627#c114963 
---------------------------------------------------------------------- 
Tested new patch from tilghman on 1.6.1.11. Appears to work correctly using
my previous test case of establish call to an unused IP address and
cancel.

History:
1. NewChan         Channel SIP/10.2.9.252-00000002 - from
09093f8413b2db0c6de780f7
2. TxReqRel        INVITE / 102 INVITE - INVITE
3. ReTx            1000 INVITE sip:10.2.9.252 SIP/2.0
4. ReTx            2000 INVITE sip:10.2.9.252 SIP/2.0
5. Cancel          Cause Unknown
6. SchedDestroy    32000 ms
7. DELAY           Not sending cancel, waiting for timeout
8. ReliableXmit    timeout
9. ReliableXmit    timeout

After 32 seconds, at 8. in history 'Last Message' becomes Tx: CANCEL
(autodestruct)
After a further 32 seconds at 9. in history Need Destroy flag is set
After a 32 seconds the dialogue is really destroyed... 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-12-09 00:32 dant           Note Added: 0114963                          
======================================================================




More information about the asterisk-bugs mailing list