defining maxsockets (precaution)