block response to WHOHAS if reach max connections, add tests

fix some potential bugs of GET_DATA_LEN