Added socket timeout to prevent network cameras from hanging