Operating System - OpenVMS
1827864 Members
2251 Online
109969 Solutions
New Discussion

TCP socket startup issue

 
Osa Jousou
Occasional Advisor

TCP socket startup issue

I have a c program that opens and connects a socket to one of our vendors for the purpose of exchanging information. We disconnect the socket after midnight using ndd disconnect by address. The problem we're having is, when we start the process in the morning, the socket status starts in "Established" mode and since their are no files to exchange with the vendor the socket goes into "Time_Wait" status which causes our program to fail and socket to disconnect. My workaround, was to send a single packet at startup across the connection. That causes the socket to stay open. If someone has a solution or suggestion to how I can fix this, please send me your thoughts.
1 REPLY 1
Osa Jousou
Occasional Advisor

Re: TCP socket startup issue

Sorry, posted in the wrong forum. Please disregard.