danikf / tik4net

Manage mikrotik routers with .NET C# code via ADO.NET like API or enjoy O/R mapper like highlevel api.
Apache License 2.0
174 stars 93 forks source link

Problem with connection - Can not read sentence from connection #61

Closed siasty closed 4 years ago

siasty commented 5 years ago

Hi, I have a case trying to use your api in dotnet core 2.2 I have a connection error Can not read sentence from connection the case is random and I do not know how to protect it. Did you have such cases or you can give me some hints?

Best regards Maciej

danikf commented 4 years ago

I would recommend to create new connection for every mikrotik session (don't leave open connection for long time) + use connection in using(....) block to be sure it will be closed.

Does it help? D

danikf commented 4 years ago

Closed - no response.