Opened 14 years ago
Closed 14 years ago
#613 closed defect (fixed)
Oscam cccam server: MSG_KEEPALIVE is missing
Reported by: | schwa226 | Owned by: | schlocke |
---|---|---|---|
Priority: | major | Component: | Protocol - CCCam |
Severity: | high | Keywords: | cccam server MSG_KEEPALIVE |
Cc: | Sensitive: | no |
Description
As the oscam cccam client is sending the MSG_KEEPALIVE like the original cccam client it need a response in 5-10 seconds for the message.
After the first MSG_KEEPALIVE the oscam cccam server doesn't return anymore 4 bytes: len = -1 and the oscam cccam client close the remote connection to oscam cccam server.
This will fix it:
case MSG_KEEPALIVE:
cc->just_logged_in = 0;
if (!is_server) {
cs_debug("cccam: keepalive ack");
} else {
Checking if last answer is one minute ago:
if (cc->answer_on_keepalive+55 < time(NULL)) {
cc_cmd_send(NULL, 0, MSG_KEEPALIVE);
cs_debug("cccam: keepalive");
cc->answer_on_keepalive = time(NULL);
}
}
break;
cc->answer_on_keepalive isn't needed for server, isn't? Only for client because the client is requesting the MSG_KEEPALIVE from the server.
The CCcam server have to send back a MSG_KEEPALIVE every time it got requested by an client. The interval can be less than one minute! The original cccam client is requesting the MSG_KEEPALIVE every 20-30 seconds.
Change History (2)
comment:1 by , 14 years ago
comment:2 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
looks like it works now since #2650
do it just like original cccam pls :) is perfect as it is.
from what i know from oscam the end result ill be way faster.