socket timeout 300ms instead of 1 second