compute the time.Duration we will wait for socket operations