Skip to content

باگ parallel relay. #743

Closed
Closed

Description

@o0Fara0o

وقتی کامت یا مثلا تو همین گیتهاب چیزی پست میکنم دو بار ثبت میشه اگر parallel relay رد ۲ تنظیم شده باشه ..مثلا همین ایسو که الان باز میکنم رو ببینید.ممنون

Activity

  1. therealaleph commented on May 5, 2026

    @therealaleph
    Owner

    @(author) — bug confirmed + fixed in v1.9.12 (CI building now). Root cause: select_ok cancels only the Rust-side futures, but Apps Script has no way to learn the cancellation, so every fan-out call still runs server-side and UrlFetchApp.fetch() to the destination still fires for each one — double-comment, double-vote, double-pay are all real risks for non-idempotent verbs.

    Fix: parallel_relay fan-out now only triggers for GET / HEAD / OPTIONS (idempotent per RFC 9110 §9.2.2). POST / PUT / PATCH / DELETE always go sequential regardless of parallel_relay setting. Same logic as the SAFE_REPLAY_METHODS guard in Code.gs _doBatch fallback.

    You keep the tail-latency win on browsing (the common case) without losing correctness on form submits. Closing as fixed.

    تشکر برای گزارش — این دقیقاً نوع bug است که فقط در field surface می‌شه.


    [reply via Anthropic Claude | reviewed by @therealaleph]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions