|
|
| version 1.2.2.27, 2012/05/05 15:16:34 | version 1.2.2.28, 2012/05/08 11:45:57 |
|---|---|
| Line 39 initSession(int sock, ait_val_t * __restrict v) | Line 39 initSession(int sock, ait_val_t * __restrict v) |
| } | } |
| /* init server actor */ | /* init server actor */ |
| sess->sess_srv = mqtt_srv_Init(sock, sess->sess_buf); | sess->sess_srv = mqtt_srv_Init(sock, sess->sess_buf, sess->sess_ka); |
| if (!sess->sess_srv) { | if (!sess->sess_srv) { |
| ioDEBUG(3, "Error:: in srv_Init #%d - %s", mqtt_GetErrno(), mqtt_GetError()); | ioDEBUG(3, "Error:: in srv_Init #%d - %s", mqtt_GetErrno(), mqtt_GetError()); |
| mqtt_msgFree(&sess->sess_buf, 42); | mqtt_msgFree(&sess->sess_buf, 42); |
| Line 223 startSession(sched_task_t *task) | Line 223 startSession(sched_task_t *task) |
| sess->sess_will.qos = flg.will_qos; | sess->sess_will.qos = flg.will_qos; |
| sess->sess_will.retain = flg.will_retain; | sess->sess_will.retain = flg.will_retain; |
| sess->sess_will.flag = flg.will_flg; | sess->sess_will.flag = flg.will_flg; |
| sess->sess_srv->timeout = sess->sess_ka; | |
| } | } |
| /* check online table for user */ | /* check online table for user */ |