[PATCH 3/6] server: Use separate fields to track socket shutdown state.