Added option to timeout sockets server-side. (#304)