Closed JosefWN closed 2 years ago
Ah, what the heck, fixed https://github.com/shamblett/coap/issues/73 in a separate commit while I was at it :P
Ran a longer test yesterday, sent about 45 000 requests, not counting block requests, all of which were successful!
Only had this warning, which my latest commit should fix:
[+55325686 ms] flutter: 2022-04-07 22:14:58.976: WARNING: >> Truncating value {65536} to {16}-bit integer
[ +17 ms] flutter: 2022-04-07 22:14:59.025: WARNING: >> Matcher - Possible MID reuse before lifetime end: abe5fb343f3d3ccf expected MID
65536 but received 0
Bugfixes:
Minor fixes:
coapEndpoint
and anendpoint
inCoapClient
, switched to just keep a defaultendpoint
_method
inCoapRequest
which was already held in its super classresolveDestination
, if theCoapRequest
has an endpoint, it has a destinationSuggestions:
useRandomTokenStart
and the worry about wrapping around too fast. Assuming the random number generation is at least decently sound, even 100M requests would be less than 1% likely to collide on token, if my math is right.Been running for 90 min now, about 4000 requests over 4 clients, 0 failures :)