Open Jepplar opened 11 months ago
I have managed to find a workaround for the issue by lowering ExchangeLifetime to 5000 in the server config from its default value. It seems to be connected to deduplication although I'm not quite sure which side effects it might have.
I'm also not sure why it runs into an issue at 65k exchanges which seem a bit low. I am assuming that it runs out of some kind of handle or buffer space, which the above mentioned sweep resolves by removing old exchanges prematurely.
Is there perhaps a better solution?
I'm running into an issue where the CoAP server seemingly stops responding to the client after 2**16 requests in one of my applications. I have separated the issue into a simple test server+client as outlined below which replicates the issue.
Even though the client sends 100k requests, only 65k of them are received by the server. Adding a sleep when sending requests, waiting for ACK etc does not seem to make a difference.
Any ideas on how to resolve the issue?
Server code:
Client code:
Output:![image](https://github.com/Com-AugustCellars/CoAP-CSharp/assets/19408639/dba5e1ab-dac1-49b0-8740-f50a40ebe009)
I am using NuGet package 1.10.0 of "Com.AugustCellars.CoAP" with .NET 7.0 and Visual Studio 2022 on Windows 10.