The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > HP-UX
Google UNIX.COM


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
socket close() -w- pthreads linux 2.6.18.2-34 (suse) SMP ramen_noodle High Level Programming 1 02-06-2008 07:22 AM
any way to close socket pa.chidhambaram UNIX and Linux Applications 3 02-01-2008 07:12 AM
socket close hangs and CPU go to 100% arico HP-UX 0 08-22-2006 09:35 AM
Socket Programming socket soshell High Level Programming 2 06-29-2004 04:49 AM
C Prog to close a socket in established state teledelux High Level Programming 1 10-03-2001 08:42 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 08-14-2007
Registered User
 

Join Date: Aug 2007
Posts: 2
Close Socket at HP-UX

Hi all,
I have a HP-UX 11.23 that have a Server establishing connections on port 8888 .
The problem is that when i need to stop and restart the Server, the connections mantain the same state and i need to wait about 20-30 minutes before all connections finishes.
The connections remain at states "Established, close_wait, fin_wait1, fin_wait2", but at this time i already haved stop the server and need to restart, and i only can restart the server later close all connections at 8888 port.
i try to stop the connections with lsof and ndd, but the parameters that i enter does not work.

Someone have any suggestion??
Reply With Quote
Forum Sponsor
  #2  
Old 08-14-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Yes the bind will fail if there are outstanding fin1/fin2 state sockets unless the server uses SO_REUSEADDR or you wait for the timeout.
Reply With Quote
  #3  
Old 08-14-2007
Registered User
 

Join Date: Aug 2007
Posts: 2
Ok Porter, Thanks for your help...

but how to set "SO_REUSEADDR" and timeout parameters???
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:25 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0