-
Notifications
You must be signed in to change notification settings - Fork 408
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
Problem with client registration #751
Comments
Are you using DTLS ? regarding your log (port 5683), I would say : no. |
Hi, I am not currently using DTLS. |
Hi so I finally found what was causing the issue and it came from me not understanding something: |
This is not the case. Listeners are called by threads of the coap protocol state thread pool. Your underlying question is why we don't call listener method in another thread. The answer is just to let user do what they want. I feel sometime this is not really useful to create a new thread (e.g. if you just want to add metrics) But we should probably document this ! |
I added some javadoc about that. Should we close this issue now ? |
Hi, |
It's pretty hard to advice anything without knowing the setup. Increasing the number of threads could make sense if your threads are blocked waiting for some resources. But adding to much threads could decrease performance (because of context switch) Did you implement your own RegistrationStore or SecurityStore ?
You mean "more than 8" devices at the same time cause issue ? (This should not) |
Hi,
When they register we do multiple reads and observes on different resources/instances. |
10 devices at the "same time" should not be an issue at all. This means there is an issue somewhere. Do you see anything in log ? or in wireshark capture ? do you have any blocking thread which could avoid to handle the request in time ?
If a device register itself and there is already a registration for that client. (client is identified by endpoint Name), so the previous registration is removed and an unregister event is raised. |
I don't see what could be blocking the receiving threads. Whenever I receive a register request I use Are the receiving and sending threads shared ? |
at CoAP level threads pool is shared to handle receiving and sending messages. |
Ok so then the locked threads come from the Do yo have any advice on how to best handle this? |
I repeart myself :) :
|
Could we close this issue ? |
Yep. I will close this now. |
Hi everyone,
I am having an issue that I cannot fix lately and need your input on this.
We have an instance of the leshan server running inside a
GCP
cluster (only one instance) behind aninternal load balancer
.What I have been seeing lately is that a lot of our clients are not able to register passed a certain point (that I am not able to detect).
Here is a screenshot of the logs of the server
All the
129 bytes
received messages are clients trying to register to the server.However the server seems to do nothing with the calls/messages.
Do you have any idea of what could be happening here?
For more details all the clients are using the
U
mode and have a dynamic IP that changes when they loose the connection.Tell me if you need anything else 😄
Thanks for the help
The text was updated successfully, but these errors were encountered: