in reply to Re: Re: Re: Re: Problem Keeping Socket Alive
in thread Problem Keeping Socket Alive

Just two more questions and I think I can narrow it down, 1, is there any firewall device between the UDS-10 and the logging server? (if yes brand) 2, could you get me a output of netstat for the port when it is in error state? Thanks.

-Waswas
  • Comment on Re: Re: Re: Re: Re: Problem Keeping Socket Alive

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: Problem Keeping Socket Alive
by skamerman (Initiate) on Dec 23, 2002 at 20:30 UTC
    Well - there is no firewall between the UDS-10 and the server. I will try to get you the netstat output by tomorrow, because it takes a while before it stops logging. Thanks in advance for all your help - I almost re-wrote the code in C++ to see if I had more luck. Here is the netstat output when it's working:
    tcp 0 0 localhost:36903 uds-10#1:10001 ESTABLISHED tcp 0 0 localhost:36939 uds-10#2:10001 ESTABLISHED
    If you want to see more detailed netstat info in my next post, let me know.
Re: Re: Re: Re: Re: Re: Problem Keeping Socket Alive
by skamerman (Initiate) on Dec 23, 2002 at 21:21 UTC
    In the meantime - what do you think the state would be after the process stops working, and how would you resolve the problem, given the netstat data?
      I don't know that I am expecting anything from netstat -- If the output has something other than ESTABLISHED than that may point to other problems, Can you check the config on the Serial->Net plug and tell me what you have set for: Inactivity Timeout: and Inactivity Timer: under the Additl settings? Default is enabled This can cause the plug to drop connections after a timeout period -- and if it does not handle this properly can leave the port on the logging server side in one of the WAIT states that can make the port apear to be used but really is just partally connected.

      -Waswas
        Good thinking:
        Inactivity Timeout = Enabled
        Inactivity Timer = 0:0

        I also noticed something called "Packing Algorithm" that might be helpful. If I could get my UDS to send out a unique charachter every so often, that should also keep my connection alive.