Skip to content

Conversation

@ukwhatn
Copy link
Owner

@ukwhatn ukwhatn commented Jan 2, 2026

Summary

  • 全httpx箇所にリトライ機構を追加
  • 4xxエラーでリトライしないよう修正
  • バージョン4.2.1にバンプ

Changes

  • util/http.py: 共通リトライユーティリティを新規作成
    • sync_get_with_retry, sync_post_with_retry, calculate_backoff
    • 4xxエラーはリトライせず即座に例外送出
  • util/requestutil.py: リトライロジックを追加、4xxエラー対応
  • connector/ajax.py: SSLチェックにsync_get_with_retryを適用
  • module/site.py: from_unix_nameにsync_get_with_retryを適用
  • module/auth.py: ログインにsync_post_with_retryを適用(3回制限)
  • util/quick_module.py: _requestにsync_get_with_retryを適用

- util/http.pyに共通リトライユーティリティを新規作成
  - sync_get_with_retry: 同期GETリクエスト
  - sync_post_with_retry: 同期POSTリクエスト
  - calculate_backoff: 指数バックオフ計算(ジッター付き)
- RequestUtil.requestに直接リトライロジックを追加
- ajax.pyのSSLチェックにsync_get_with_retryを適用
- site.pyのfrom_unix_nameにsync_get_with_retryを適用
- auth.pyのログインにsync_post_with_retryを適用
  - アカウントロック防止のためリトライ上限を3回に制限
- quick_module.pyの_requestにsync_get_with_retryを適用
@ukwhatn ukwhatn merged commit 6ce0127 into main Jan 2, 2026
12 of 13 checks passed
@ukwhatn ukwhatn deleted the release/4.2.1 branch January 2, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants