Changeset 4864 for trunk/module-cccam.c
- Timestamp:
- 03/29/11 23:39:49 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/module-cccam.c
r4858 r4864 2726 2726 while (cl->pfd && cl->udp_fd && cc->mode == CCCAM_MODE_NORMAL && !cl->dup) 2727 2727 { 2728 i = process_input(mbuf, sizeof(mbuf), 1); 2729 if (i == -9) { 2730 cmi++; 2731 ulong cmaxidle = cfg.cmaxidle; 2732 if (cmaxidle < 300)//300s=5min "O" CCcam idle time 2733 cmaxidle = 300; 2734 if (cmi >= cmaxidle) { 2728 i = process_input(mbuf, sizeof(mbuf), 10); 2729 if (i == -9) { //timeout 10s 2730 cmi+=10; 2731 if (cmi >= cfg.cmaxidle) { 2732 cs_debug_mask(D_TRACE, "client timeout user %s", usr); 2735 2733 if (cfg.cc_keep_connected || cl->account->ncd_keepalive) { 2734 if (cc_cmd_send(cl, NULL, 0, MSG_KEEPALIVE) < 0) 2735 break; 2736 2736 if (wait_for_keepalive<3 || wait_for_keepalive == 100) { 2737 if (cc_cmd_send(cl, NULL, 0, MSG_KEEPALIVE) < 0)2738 break;2739 2737 cs_debug_mask(D_CLIENT, "cccam: keepalive"); 2740 2738 cc->answer_on_keepalive = time(NULL); … … 2775 2773 cs_add_violation((uint)cl->ip); 2776 2774 } 2777 cc_cleanup(cl);2778 2775 cs_disconnect_client(cl); 2779 2776 return NULL; //suppress compiler warning
Note:
See TracChangeset
for help on using the changeset viewer.