[PATCH v2 0/3] MR225: server: Fix races related to socket errors