1826501 Members
1598 Online
109692 Solutions
New Discussion

Re: Corrupted sockets

 
msbinu
Advisor

Corrupted sockets

Hi ,

IS there some scenario where the unix sockets gets Corrupted and hungs?
If so how can we prevent tht from happening ?
And how to recover the socket once it is corroupted ?

Regards
Binu
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: Corrupted sockets

Shalom Binu,

Could you provide some information on why you think the socket is corrupt? Error code? syslog or application message. Anything.

You should be able to recover by restarting networking. /sbin/init.d/net stop ;/sbin/init.d/net start

do it on one command line or at the console or you will lose access to the system.

SEP

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
JASH_2
Trusted Contributor

Re: Corrupted sockets

msbinu,

I had an export to tape running from a sybase database that failed and would not let go of a socket once, nothing worked to free it until I rebooted.

While ago now, probably more dynamic with stop and start net.

Regards,

JASH
If I can, I will!
msbinu
Advisor

Re: Corrupted sockets

Hi
Any idea in which scenarios this will happen

BInu
A. Clay Stephenson
Acclaimed Contributor

Re: Corrupted sockets

In almost all cases when there is a problem with sockets the problem lies in the application code (ie, the design was not robust enough). There have certainly been patches related to sockets, STREAMS, and network but since you barely bother to describe your problem or the OS, it's rather difficult to help much.
If it ain't broke, I can fix that.
msbinu
Advisor

Re: Corrupted sockets

Hi ,

I m application runs on unix
And the application seems ti hung due to some reason .
From the logs we are geting a file descriptor corroupted error for the scoket .
Thts y we suspect that the socket is getting corroupted due to some reason .

We need to restart the application to get rid of the issue

Binu