Skip to content

SCTP socket lingers in CLOSE state for RHEL/CentOS #6

@GoogleCodeExporter

Description

@GoogleCodeExporter
When the SCTP socket was closed via management "m3ua asp stop XXX" and then 
started again "m3ua asp start XXX" the SCTP socket was not created and "netstat 
-pan | grep sctp" will show something like

sctp 3368 602439 X.X.X.X:2905 X.X.X.X:2905 CLOSE

Little more investigation and it turns out to be OS issue :( 
https://access.redhat.com/knowledge/solutions/56433.

There was issue with RHEL OS kernel version before kernel-2.6.32-220.el6.

The other option is set SO_LINGER in Sctp Socket 
http://docs.oracle.com/javase/7/docs/jre/api/nio/sctp/spec/com/sun/nio/sctp/Sctp
StandardSocketOptions.html#SO_LINGER

But from that link, it says its for socket configured for blocking mode only, 
while ours is non-blocking mode. 

Original issue reported on code.google.com by amit.bha...@gmail.com on 13 Mar 2013 at 7:12

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions