-
Notifications
You must be signed in to change notification settings - Fork 369
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
Add a specific exception for HandshakeTimeout ? #1223
Comments
is the "CoAP timeout" the timeout of a single request? And the blockwise timeout then the timeout of the complete blockwise transfer? |
Nope, I try to explain "my terminology" in this wiki page. Let me know if this is not clear. My idea is to let user aware of the cause/type of the timeout and so he will be able to change it if needed. |
|
👍 !
AFAIK, there is no issue here. (In leshan we use MessageObserver.onTimeout(). (see eclipse-leshan/leshan@3e10026)
I think you're right in normal use case this should mainly be a timeout at server side. |
That depends then on the implementation of that timeout.
something like that would trigger:
and so even that may not end up in a blockwise timeout. |
🤔 in that case I feel it normal as we cancel the request before, or I missed something ? |
What is considered to be normal? The blockwise timeout? |
I was talking about :
|
In Leshan, when a request timeout for any reason we raise a TimeoutException.
We decide recently to consider a Handshake flight timeout as Leshan request timeout.
But currently there no easy way to know handshake timeout because we raise an
Exception
.So the code looks like something like this :
Should we raise a specific exception ?
(Ideally I would like to be able to distinguish a CoAP timeout from a Blockwise timeout but I guess this would be a really more complex task , this is maybe relative to #818 ?)
The text was updated successfully, but these errors were encountered: