[PATCH v6 resend 05/10] server: Defer clearing events until async is completed in send_socket handler.