-
Notifications
You must be signed in to change notification settings - Fork 97
uCellSockCleanup #217
Comments
Hi there. Yes, I think you are right, I had misinterpreted my own comment above Lines 193 to 200 in 1b94ec5
...to mean that all sockets had been closed, which happens to be how we use it in our test cases, but of course that's not what it says, it should clean-up only unused sockets-related resources. Let me try to figure out why I didn't put this in uCellSockDeinit() in the first place. |
You may find a proposed fix in a preview branch here: https://github.com/u-blox/ubxlib/tree/preview_fix_sock_clean_up_rmea This passes our testing, but so did the original code, so please give it some through checking at your end; I am now just removing all of the URCs in When you have confirmed that you are happy I will merge the change, push it out to |
Hi Rob looks good thank you. another question regarding socket celanup: The reason why we do not close the socket beforehand is that we do not know exactly when the module will switch to PSM. The second reason is that |
Hi, You are correct, when the module goes into PSM sockets are closed. Regards, |
Hi That's how we do it. But at some point the closed UDP sockets must be cleaned up in ubxlib. |
Hmmm, yes, subtle. I was going to say that uSockDeinit() should do that but of course that would talk to the module, which you do not want. So maybe |
Sounds good. That would help us |
OK, I will do that as a separate change. Have you been able to test that the fix for the clean-up issue is good? If so I will get it reviewed and pushed back to |
Yes, it has now been running for several hours without any problems. I think it is OK. Thank you |
Fix for issue that was the subject of the original post now pushed to 3335108 here. Will do the " |
Find here: https://github.com/u-blox/ubxlib/tree/preview_feature_sock_forget_rmea ...a preview branch of the proposed |
looks good. thanks |
The addition of |
Hi there
We see a potential problem in
uCellSockCleanup
which was introduced in commit 3ffd36f.In
uSockCleanUp
all URCs are removed if at least one socket is closed.As a result, uCellSockGetBytesPending() no longer works for sockets that are still open.
as an example:
uCellSockGetBytesPending
whether new data is available.uCellSockGetBytesPending
will always return zero because the +UUSORD URC has been removed.Does that make sense or am I wrong?
The text was updated successfully, but these errors were encountered: