Closed mstfbirinci closed 5 years ago
We didn't found this problem, but your proposal it's a good improvement. We will think about it with @MiquelIR
Hi @mstfbirinci ! Are you getting this stalling using the current version of the code?
It's true that it fell onto some stalled state before but I think we fixed that with the disconnection process.
If you are still getting it we can look into it to find some viable solutions.
Hi @ecarreras @MiquelIR
For example, it send link_state_request frame and didn't get any response. After the 60 sec(queue timeout) it raised queue.empty exception.
I think, it caused by gsm signal loss.
Currently we are not testing it with GSM, only in IP meters, but when we will work with GSM we will try it and if there is a problem we will fix it.
@mstfbirinci Hi! I don't know if you are still using or checking this project but I coded a modification to allow those retries you asked for. It's on here #10
It's pretty simple but it resends the 2 handshake messages.
Fixed #10
link_state_request, remote_link_reposition, authentication or read_integerated_total methods send frames, but sometimes we can not get any response and connection is stalled.
I think, if we can not get any response for any frame, we should retransmit the frame until getting acknowledment or should try max 5 times.
Did you faced with this problem? What do you think about this?