add socket timeout param for getting connection