You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you very much for the excellent project! So far this is the best CoAP library that I have used!
I am using it for an application that I am creating and I started looking into the shutdown logic. From what I saw in the code, when the shutdown method is called, the listener stops accepting requests, but there is no guarantee that all the requests that are already accepted will finish their processing. I believe I can add logic in my handler type for keeping track of this, so that my application can call server.Shutdown() followed by handler.Close() and have a guarantee that all processing is over, but I thought the better approach might be if the server library takes care of it as other will face a similar problem.
I need to make sure all the processing is over as I don't want to exit the application and interrupt some processing that might result in inconsistent state.
Cheers,
The text was updated successfully, but these errors were encountered:
Hello,
Thank you very much for the excellent project! So far this is the best CoAP library that I have used!
I am using it for an application that I am creating and I started looking into the shutdown logic. From what I saw in the code, when the shutdown method is called, the listener stops accepting requests, but there is no guarantee that all the requests that are already accepted will finish their processing. I believe I can add logic in my handler type for keeping track of this, so that my application can call server.Shutdown() followed by
handler.Close()
and have a guarantee that all processing is over, but I thought the better approach might be if the server library takes care of it as other will face a similar problem.I need to make sure all the processing is over as I don't want to exit the application and interrupt some processing that might result in inconsistent state.
Cheers,
The text was updated successfully, but these errors were encountered: