Repository navigation
release v0.8.1-alpha: cancellation is not a network or handler error - #45
Merged
Merged
Conversation
…r (v0.8.1-alpha) - UpdatePoller.FetchUpdatesAsync no longer wraps a cancelled long-polling request in MaxNetworkException, so stopping the bot logs no warning. - MaxHttpClient neither retries nor logs a request cancelled by the caller; HttpClient timeouts are still retried. - Handler cancellation on stop is propagated instead of logged as an error; an interrupted batch keeps the marker. - Stopping during the error backoff leaves the loop normally. - Webhook answers 499 when MAX aborts the request. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013pSNnawFkxH4NpFXTzqjCT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Отзыв пользователя: при остановке бота
UpdatePollerпишет в логNetwork error while polling updatesсMaxNetworkException, внутри которогоTaskCanceledException. Причина вFetchUpdatesAsync: он заворачивал отмену long-polling запроса вMaxNetworkException, поэтомуcatch (OperationCanceledException)в цикле поллинга эту отмену не ловил.Исправлено
UpdatePoller.FetchUpdatesAsync: отмена по токену поллера теперь пробрасывается как есть.MaxHttpClientпри отмене вызывающим кодом больше не повторяет запрос и не пишет в лог warning или error. Таймаут самогоHttpClientпо-прежнему повторяется.UpdateHandlerExecutorне логирует отмену обработчика при остановке как ошибку. Прерванная пачка обновлений не сдвигает маркер.499, если MAX оборвал соединение.0.8.1-alpha, запись в CHANGELOG.Проверки
dotnet test: 782/782 на net10.0 и на net8.0.dotnet formatи анализаторы без замечаний.Generated by Claude Code