-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception "There is no valid request available" when any client reconnect. #138
Comments
Hi, thanks for the bug report. Could you please provide also the stack trace of the exception? I would then see what methods were invoked before the exception happened. Thanks :-) |
Thanks! I think the FluentModbus/src/FluentModbus/Server/ModbusTcpRequestHandler.cs Lines 171 to 175 in bbd7dcd
Why? Because this FluentModbus/src/FluentModbus/Server/ModbusTcpRequestHandler.cs Lines 58 to 64 in bbd7dcd
And if FluentModbus/src/FluentModbus/Server/ModbusRequestHandler.cs Lines 68 to 69 in bbd7dcd
It would be great if you could try it with the above suggested fix :-) |
Here same problem, in some cases the server Tcp stop working and connections from clients are not accepeted. |
Hi
I have big problem with creating ModbusTCP Server. Server works, data flows, but when client reconnect (like PLC, because don't like to keep alive connection) FluentModbus call exception "System.Exception" and "There is no valid request available.". So in short, exception occurs, when any client tried to reconnect.
I checked this also on Node-Red ModbusTCP Client. Init connection is ok, but when Connected, VS call exception like above. I cannot find reason why this happens, so please, help :)
Tried also RequestValidator, but this cannot catch this problem. Problem still happens when Server is asynchronus.
The text was updated successfully, but these errors were encountered: