The README.windows file includes the message:
Seems client applications do not close sockets.
The sockets remain in TIME_WAIT state.
It can exhaust system resources.
Visual Studio code analysis when compiling openhpi_baselib.dll says:
CA1001 Types that own disposable fields should be disposable
Implement IDisposable on 'HpiTransport' because it creates members of the following IDisposable types: 'Socket'.
OpenHPI Baselib
HpiTransport.cs 25
It is possible that we need to add disposing code for the socket object in the C# HpiTransport class to fix the code analysis issue and to fix the sockets not closing problem.
The README.windows file includes the message: Seems client applications do not close sockets. The sockets remain in TIME_WAIT state. It can exhaust system resources.
Visual Studio code analysis when compiling openhpi_baselib.dll says: CA1001 Types that own disposable fields should be disposable Implement IDisposable on 'HpiTransport' because it creates members of the following IDisposable types: 'Socket'. OpenHPI Baselib HpiTransport.cs 25
It is possible that we need to add disposing code for the socket object in the C# HpiTransport class to fix the code analysis issue and to fix the sockets not closing problem.
Reported by: mgthompson
Original Ticket: openhpi/bugs/1938