Issue with TCPCSV presentation


I’m having an issue with a DIA application (derived from the auto-enumerated example).

I do use the TCPCSV presentation.
But now the python code fall in the following error all the time when I launch the script :

Exception in thread tcp_csv0: Traceback (most recent call last):   File "./", line 442, in __boots trap   File "C:\Program Files (x86)\Digi\DigiPytho n\Dia\Dia_1.4.14\src\presentations	cpcsv	cp", line 110, in run   File "./", line 156, in __init__ error: (24, 'Too many open files')

My guess would be that each time the gateway try to open a new TCP socket, a file is created, and never closed/deleted.

So I would have 2 questions :

  • how can I restore my gateway to its original state ?
  • how can we avoid such issue ?


I’ve found that with the console :

#> display sockets

Socket Status:

Total Sockets : 128
Free Sockets : 97
Used Sockets : 31
IP Network Sockets : 27
Device Sockets : 3
File Sockets : 0
Mesh Sockets : 1

Maximum TCP Sockets : 128
Used TCP Sockets : 128 <<<<< !!!

This would confirm an issue related to the number of opened sockets.
Any comments on this ?

Ok, I identified the issuewas caused by a frequency interval too small for the TCPCSV presentation.
The setting was 5 seconds.
No issue with a 1 minute interval.