mohandev2 / openhpi_old

Other
0 stars 0 forks source link

C# client applications do not close sockets. #1938

Open mohandev2 opened 7 years ago

mohandev2 commented 7 years ago

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

mohandev2 commented 7 years ago

Original comment by: mohandev2

mohandev2 commented 7 years ago

Original comment by: mohandev2

mohandev2 commented 6 years ago

Original comment by: mohandev2