+        conn.id = conn_id
 +        conn.last_recv_timestamp = time.time()
 +        conn.last_msg_timestamp = time.time()

Do you mean check_last_recv_timestamps etc?