[PATCH 4/4] server: Move sock->error setting completely out of sock_dispatch_events().