misc: rename variable name and change reconn timeout calculating