nauful / LibUA

Open-source OPC UA client and server library
Apache License 2.0
260 stars 94 forks source link

BadTooManyPublishRequests #188

Closed Polyteres closed 4 weeks ago

Polyteres commented 1 month ago

Hi,

We have an OPC server based on the sample server from this library and we are getting this message without any defined pattern (the application can be running without problems for hours). As workarounds we have increased the number of clients when we created the server to 400, the timeout to 40 and the MaxPublishRequests of the class NetDispatcherBase to 8192 but we still get this error. Is there any limitation in this regard?.

20240919 h1033 Anomalia Server OPC-UA su console Microcom

Best Regards, Borja Navarro.

nauful commented 1 month ago

Hello,

It looks like the client is repeatedly sending a request for a publish but these requests are never satisfied. You should normally see:

  1. Client sends a publish request.
  2. Server writes new data.
  3. Client receives a publish response to the request with the new data.
  4. Client acknowledges 3 while sending another publish request.

It looks like this is happening:

  1. Client sends a publish request.
  2. None are used to send the client data.
  3. Client does 1 again (which is incorrect behaviour).

If you can send me a wireshark capture with security disabled, I can take a look. Also pushed an update which fixes the count in the logger.

nauful commented 4 weeks ago

Closed due to inactivity. Please reopen if you can capture this issue with Wiresharp.