If recv fails, do nothing and return 0