Added basic timeout to recvfrom in server