Opened 8 years ago

Last modified 7 years ago

#4409 new defect

CSP connections duplicated when remote CSP is restarted.

Reported by: yonesmit Owned by:
Priority: major Component: Cache-EX
Severity: medium Keywords: CSP Cache-EX
Cc: Sensitive: no




Issue Description

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:

find_client_by_ip(SIN_GET_ADDR(cad), ntohs(SIN_GET_PORT(cad)));

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)

Attachments (1)

Screen.jpg (77.8 KB ) - added by yonesmit 8 years ago.
Oscam Cache-EX. Connection 1, 2 and 4 are from the same CSP

Download all attachments as: .zip

Change History (2)

by yonesmit, 8 years ago

Attachment: Screen.jpg added

Oscam Cache-EX. Connection 1, 2 and 4 are from the same CSP

comment:1 by prilly, 7 years ago

How is this issue progressing?

I see the same problem on oscam 11272, its realy annoying and put the system under stress.

i hope it might be possible to get this issue fixed.

The problem is identified in the above rutine. so i teory it should be a trivial fix.


Last edited 7 years ago by prilly (previous) (diff)
Note: See TracTickets for help on using tickets.