set timeout for server socket