TCP close?

You have a question or need an advice about how to do something? Ask it here!
Post Reply
Thijmen
Posts: 119
Joined: 16 Jul 2019 20:19
TCP close?

Post by Thijmen »

Hi there,

I heavily use the TCP connection and it just occured to me, that when testing a script, the ping timeout is visible in the output console:

Code: Select all

20-1-2026 21:20:34: Processing Script-Line 6 (Retries=4000): 1 LeastRecentlyPlayed : ALLES (Filter=~[Rating] <> '20', Options=None)
20-1-2026 21:20:34: System.Exception
Client Ping timeout!
   at cv.mV.Fk75(Object  , FirstChanceExceptionEventArgs  )
   at ProppFrexx.RemoteControl.RemoteControlTCPClient.ikwG()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
Which makes me wonder: do I need to say goodbye via the TCP? I know that for long-lived TCP connections you need to send the PING command, but my TCP connections are shortlived.
User avatar
radio42
Site Admin
Posts: 9010
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: TCP close?

Post by radio42 »

Yes, but this is just an FirstChanceException, which is gracefully caught. So no worry and no issue.
Thijmen
Posts: 119
Joined: 16 Jul 2019 20:19
Re: TCP close?

Post by Thijmen »

Okay - so to confirm, even though the stack trace is visible in the debug log when testing a script, it is fine to see the exception. Thanks :)

Post Reply