support old command(lower than 1.4.14) and timeout implemented

support old command (lower than 1.4.14).
and implemented timeout when get from socket