fix http errno logging when recv() returns 0