A critical analysis of upwinding