refacoring reconnect mechinism
fixed reconnect when sending request
fixing duplicated connect