LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Kill process connected on Datasocket Server (Urgent)

I'm using old dstadocket function to reestablish the connection if the network is broken down. When the network is broken down and datasocket is still running, there is till process connected with the datasock server if you double click the datasocket server. I'm confused by this: the process should be killed automatically on the datasocket server if there is no connection existing. Is there any way to kill the process when the datasocket server is running?

John
0 Kudos
Message 1 of 4
(2,837 Views)
John,

The behavior that you are experiencing is normal. If the connection is broken by unplugging a cable or if your network goes down for any reason, the server will still display a connected process for approximately thirty seconds. If you wait long enough, however, the connection will eventually be dropped.

To avoid this, close your data socket connection using a DataSocket Close.

I hope this helps!

Matthew C
Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(2,837 Views)
Matthew,

Usually the write program and the Datasocket server are located on different machines. I do close the datasocket connection in the write program when the network goes down. How can I close the datasocket connection on the machine on which the datasocket server is licated?

Thanks a lot

John
0 Kudos
Message 3 of 4
(2,837 Views)
John,

The connection on the machine where the DataSocket server is located will close after approximately thirty seconds. If you open the DataSocket server pop-up window, where it lists the number of processes connected, you will see the number decrement by one after about thirty seconds once the client loses connection.

We tested this out here by connecting to a DataSocket server and disconnecting the client computer by unplugging its network cable.

Matthew C
Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(2,837 Views)