support Connection timeout on connecting state.

fixed `TODO: handle 'timeout' event `