Menu

#1938 C# client applications do not close sockets.

Future
open
nobody
OpenHPI Daemon
9
2018-02-27
2017-05-02
No

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.

Discussion

  • dr_mohan

    dr_mohan - 2017-06-05
    • 3.7.0: 3.7.0 --> 3.8.0
     
  • dr_mohan

    dr_mohan - 2017-06-05
    • labels: --> OpenHPI Daemon
     
  • dr_mohan

    dr_mohan - 2018-02-27
    • 3.7.0: 3.8.0 --> Future