CSP connections duplicated when remote CSP is restarted.
|Reported by:||yonesmit||Owned by:|
CSP connections duplicated when remote CSP is restarted
When the issue occurs
When the remote CSP is restarted, it created a new connection to Oscam, it uses the same IP but different (remote) port. Then in the function accept_connection() when it looks for client:
it doesn't find it and create a new client (and a new thread, etc..). Since then the oscam cache is sent to BOTH connections and received only from the first one.
Previous connection (and client) should be closed and deleted or new connection should be assigned to the previous client.
How the issue is reproducable
Setup connection to receive cache from CSP, and then restart the CSP.
I can't attach the logfile because I don't have a CSP running to reproduce. I need to wait until the one I use is restarted. But I think I explained quite deeply the source of problem. I attach a screenshot displayin 3 connections of the same CSP (first, second and fourth)