Fixed OSError + recvLine deprecation warnings.