TCP/IP Socket and SS$_DUPLNAM? 
  
 The Question is:
 
TCP/IP 5.1 on Alpha OpenVMS 7.2-1.  Using some Fortan examples I can get a TCP
 client to talk with a TCP server using QIO calls for socket connections .
 However, if I interrupt then stop the client and try to run again.  The
 connection takes about 1 minut
e before they are talking again (I am trying to use same port).  When trying to
 connect, the client gets an error 48 for iosb status,which is a SS$_DUPLNAM,
 on a QIO with IO$_ACCESS. Is there a way to make this timeout smaller and is
 it a parameter in TCP
IP itself?  I have tried TCPIP&gt; SET CONFIG PROTOCOL TCP /DROP_COUNT=5 AND
 /PROBE_TIMER=5 and SET PROTOCOL TCP /DROP_COUNT=5 AND /PROBE_TIMER=5 with no
 luck.  SS$DUPLNAM means that there is a network configuration error. No ports
 were available for connect
ions.  My server only shuts down and deaccesses the socket channel.  I have
 also tried to close the connection channel and create and bind to a new
 channel with the same results.  Even if I stop and restart the server, it
 takes about 1 minute for the clie
nt to connect. I would like my client to alway use the same port, if this 1
 minute timeout is a restriction that cannot be changed, do you have another
 solution?
 
 The Answer is :
 
  Please review the discussion of "lingering" and "reuse" in the TCP/IP
  Services documentation on IO$_DEACCESS and IO$_SETMODE.  Specifically,
  see the TCPIP$C_LINGER and TCPIP$C_REUSEADDR itemcodes.
 
 Answer written or last revised on  23-OCT-2001 
