P2PSocketUdp: Retry Send() after ERR_NO_BUFFER_SPACE [chromium/src : main]

0 views
Skip to first unread message

Steve Becker (Gerrit)

unread,
Feb 12, 2026, 8:32:51 PMFeb 12
to Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, bnc+...@chromium.org, net-r...@chromium.org, network-ser...@chromium.org

Steve Becker voted Commit-Queue+1

Commit-Queue+1
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I6b928a59a4b5c5afba4e4e03e3df09fbf04c444c
Gerrit-Change-Number: 7573294
Gerrit-PatchSet: 1
Gerrit-Owner: Steve Becker <ste...@microsoft.com>
Gerrit-Reviewer: Steve Becker <ste...@microsoft.com>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-Comment-Date: Fri, 13 Feb 2026 01:32:43 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Steve Becker (Gerrit)

unread,
Feb 13, 2026, 8:09:13 PMFeb 13
to Harald Alvestrand, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, bnc+...@chromium.org, net-r...@chromium.org, network-ser...@chromium.org
Attention needed from Harald Alvestrand

Steve Becker added 1 comment

Patchset-level comments
File-level comment, Patchset 4 (Latest):
Steve Becker . resolved

Please let me know if you have any questions about this change.

Open in Gerrit

Related details

Attention is currently required from:
  • Harald Alvestrand
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I6b928a59a4b5c5afba4e4e03e3df09fbf04c444c
Gerrit-Change-Number: 7573294
Gerrit-PatchSet: 4
Gerrit-Owner: Steve Becker <ste...@microsoft.com>
Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
Gerrit-Reviewer: Steve Becker <ste...@microsoft.com>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-Attention: Harald Alvestrand <h...@chromium.org>
Gerrit-Comment-Date: Sat, 14 Feb 2026 01:09:08 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Steve Becker (Gerrit)

unread,
Feb 13, 2026, 8:09:50 PMFeb 13
to Harald Alvestrand, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, bnc+...@chromium.org, net-r...@chromium.org, network-ser...@chromium.org
Attention needed from Harald Alvestrand

Steve Becker voted Commit-Queue+1

Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Harald Alvestrand
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I6b928a59a4b5c5afba4e4e03e3df09fbf04c444c
Gerrit-Change-Number: 7573294
Gerrit-PatchSet: 4
Gerrit-Owner: Steve Becker <ste...@microsoft.com>
Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
Gerrit-Reviewer: Steve Becker <ste...@microsoft.com>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-Attention: Harald Alvestrand <h...@chromium.org>
Gerrit-Comment-Date: Sat, 14 Feb 2026 01:09:45 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Steve Becker (Gerrit)

unread,
Feb 17, 2026, 11:43:32 AMFeb 17
to Harald Alvestrand, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, bnc+...@chromium.org, net-r...@chromium.org, network-ser...@chromium.org
Attention needed from Harald Alvestrand

Steve Becker voted Commit-Queue+1

Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Harald Alvestrand
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I6b928a59a4b5c5afba4e4e03e3df09fbf04c444c
Gerrit-Change-Number: 7573294
Gerrit-PatchSet: 5
Gerrit-Owner: Steve Becker <ste...@microsoft.com>
Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
Gerrit-Reviewer: Steve Becker <ste...@microsoft.com>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-Attention: Harald Alvestrand <h...@chromium.org>
Gerrit-Comment-Date: Tue, 17 Feb 2026 16:43:26 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Harald Alvestrand (Gerrit)

unread,
Feb 18, 2026, 6:21:54 AM (13 days ago) Feb 18
to Steve Becker, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, bnc+...@chromium.org, net-r...@chromium.org, network-ser...@chromium.org
Attention needed from Steve Becker

Harald Alvestrand added 4 comments

Patchset-level comments
File-level comment, Patchset 5 (Latest):
Harald Alvestrand . resolved

This CL introduces a new class of packet delay, which may cause packets to be delivered up to 4 seconds late. Do you have appropriate metrics in place to figure out how this will affect delay-based congestion controllers?
(The delay may be exactly the right signal to feed to them, since "no buffer space" is a kind of network congestion .... but it could also be the wrong signal....)

File services/network/p2p/socket_udp.cc
Line 584, Patchset 5 (Latest): int result_to_record = result;
Harald Alvestrand . unresolved

"result" is either a count or a negative error code. You can get this in one line by saying result_to_record = std::min(result, net::OK).

Line 590, Patchset 5 (Latest): base::UmaHistogramSparse("WebRTC.P2P.UDP.SendRetryResult",
Harald Alvestrand . unresolved

Does recording negative values actually work?
Since the tests pass, I assume it does - is this unique to sparse histograms?

File services/network/p2p/socket_udp_unittest.cc
Line 1705, Patchset 5 (Latest): histograms.ExpectUniqueSample("WebRTC.P2P.UDP.SendRetryResult", net::OK, 1);
Harald Alvestrand . unresolved

Is there a histogram covering Send results? If there is one, should it have recorded one net::OK and one net::ERR_NO_BUFFER_SPACE?

If there isn't one - should there be one?

Open in Gerrit

Related details

Attention is currently required from:
  • Steve Becker
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I6b928a59a4b5c5afba4e4e03e3df09fbf04c444c
    Gerrit-Change-Number: 7573294
    Gerrit-PatchSet: 5
    Gerrit-Owner: Steve Becker <ste...@microsoft.com>
    Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
    Gerrit-Reviewer: Steve Becker <ste...@microsoft.com>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Steve Becker <ste...@microsoft.com>
    Gerrit-Comment-Date: Wed, 18 Feb 2026 11:21:37 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Steve Becker (Gerrit)

    unread,
    Feb 23, 2026, 5:25:28 PM (8 days ago) Feb 23
    to Harald Alvestrand, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, bnc+...@chromium.org, net-r...@chromium.org, network-ser...@chromium.org
    Attention needed from Harald Alvestrand

    Steve Becker voted and added 5 comments

    Votes added by Steve Becker

    Commit-Queue+1

    5 comments

    Patchset-level comments
    Harald Alvestrand . resolved

    This CL introduces a new class of packet delay, which may cause packets to be delivered up to 4 seconds late. Do you have appropriate metrics in place to figure out how this will affect delay-based congestion controllers?
    (The delay may be exactly the right signal to feed to them, since "no buffer space" is a kind of network congestion .... but it could also be the wrong signal....)

    Steve Becker

    I added another histogram to measure the total delay of the retry attempts. Based on discussions with the Windows Networking team, I expect 4 seconds to be much more than required, but it will be best to verify.

    We have customers able to consistently repro in their environments. We're going to work with them to evaluate the fix in Canary and Beta.

    File-level comment, Patchset 6 (Latest):
    Steve Becker . resolved

    Thanks again for the code reviews. I really appreciate it!

    File services/network/p2p/socket_udp.cc
    Line 584, Patchset 5: int result_to_record = result;
    Harald Alvestrand . resolved

    "result" is either a count or a negative error code. You can get this in one line by saying result_to_record = std::min(result, net::OK).

    Steve Becker

    Done

    Line 590, Patchset 5: base::UmaHistogramSparse("WebRTC.P2P.UDP.SendRetryResult",
    Harald Alvestrand . resolved

    Does recording negative values actually work?
    Since the tests pass, I assume it does - is this unique to sparse histograms?

    Steve Becker

    [According to the function comment](https://source.chromium.org/chromium/chromium/src/+/main:base/metrics/histogram_functions.h;drc=f929a0c3e751200212538123bfb58c0b491c3f62;l=221), sparse histograms support negative values.

    ```
    // For recording sparse histograms.
    // The |sample| can be a negative or non-negative number.
    ```

    [CombinedHttpResponseAndNetErrorCode defines the expected values in enums.xml](https://source.chromium.org/chromium/chromium/src/+/main:tools/metrics/histograms/enums.xml;drc=67ccdac9245f9b639376296466f031c86e5c6ef1;l=1883).

    Here's another part of Chromium recording net error codes using sparse histograms.

    ```
    https://source.chromium.org/chromium/chromium/src/+/main:components/image_fetcher/core/image_fetcher_metrics_reporter.cc;drc=71e98710db31f5ee4c666eccd09fe14ff27514e7;l=157
    ```

    File services/network/p2p/socket_udp_unittest.cc
    Line 1705, Patchset 5: histograms.ExpectUniqueSample("WebRTC.P2P.UDP.SendRetryResult", net::OK, 1);
    Harald Alvestrand . resolved

    Is there a histogram covering Send results? If there is one, should it have recorded one net::OK and one net::ERR_NO_BUFFER_SPACE?

    If there isn't one - should there be one?

    Steve Becker

    Good idea. I added a new histogram: `WebRTC.P2P.UDP.SendResult`.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Harald Alvestrand
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I6b928a59a4b5c5afba4e4e03e3df09fbf04c444c
      Gerrit-Change-Number: 7573294
      Gerrit-PatchSet: 6
      Gerrit-Owner: Steve Becker <ste...@microsoft.com>
      Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
      Gerrit-Reviewer: Steve Becker <ste...@microsoft.com>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-Attention: Harald Alvestrand <h...@chromium.org>
      Gerrit-Comment-Date: Mon, 23 Feb 2026 22:25:22 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Harald Alvestrand <h...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Steve Becker (Gerrit)

      unread,
      Feb 23, 2026, 6:23:38 PM (8 days ago) Feb 23
      to Harald Alvestrand, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, bnc+...@chromium.org, net-r...@chromium.org, network-ser...@chromium.org
      Attention needed from Harald Alvestrand

      Steve Becker voted Commit-Queue+1

      Commit-Queue+1
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Harald Alvestrand
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I6b928a59a4b5c5afba4e4e03e3df09fbf04c444c
      Gerrit-Change-Number: 7573294
      Gerrit-PatchSet: 7
      Gerrit-Owner: Steve Becker <ste...@microsoft.com>
      Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
      Gerrit-Reviewer: Steve Becker <ste...@microsoft.com>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-Attention: Harald Alvestrand <h...@chromium.org>
      Gerrit-Comment-Date: Mon, 23 Feb 2026 23:23:33 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Harald Alvestrand (Gerrit)

      unread,
      Feb 24, 2026, 1:35:37 AM (7 days ago) Feb 24
      to Steve Becker, Johannes Kron, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, bnc+...@chromium.org, net-r...@chromium.org, network-ser...@chromium.org
      Attention needed from Johannes Kron and Steve Becker

      Harald Alvestrand added 1 comment

      Patchset-level comments
      File-level comment, Patchset 7 (Latest):
      Harald Alvestrand . resolved

      Approval for p2p. Adding Johannes to approve for the histograms.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Johannes Kron
      • Steve Becker
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I6b928a59a4b5c5afba4e4e03e3df09fbf04c444c
      Gerrit-Change-Number: 7573294
      Gerrit-PatchSet: 7
      Gerrit-Owner: Steve Becker <ste...@microsoft.com>
      Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
      Gerrit-Reviewer: Johannes Kron <kr...@chromium.org>
      Gerrit-Reviewer: Steve Becker <ste...@microsoft.com>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-Attention: Steve Becker <ste...@microsoft.com>
      Gerrit-Attention: Johannes Kron <kr...@chromium.org>
      Gerrit-Comment-Date: Tue, 24 Feb 2026 06:35:18 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Johannes Kron (Gerrit)

      unread,
      Feb 24, 2026, 5:55:33 AM (7 days ago) Feb 24
      to Steve Becker, Harald Alvestrand, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, bnc+...@chromium.org, net-r...@chromium.org, network-ser...@chromium.org
      Attention needed from Steve Becker

      Johannes Kron added 1 comment

      File services/network/p2p/socket_udp.cc
      Line 597, Patchset 7 (Latest): base::UmaHistogramSparse("WebRTC.P2P.UDP.SendResult", result_to_record);
      Johannes Kron . unresolved
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Steve Becker
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Owners
        • requirement is not satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        • requirement is not satisfiedReview-Enforcement
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I6b928a59a4b5c5afba4e4e03e3df09fbf04c444c
        Gerrit-Change-Number: 7573294
        Gerrit-PatchSet: 7
        Gerrit-Owner: Steve Becker <ste...@microsoft.com>
        Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
        Gerrit-Reviewer: Johannes Kron <kr...@chromium.org>
        Gerrit-Reviewer: Steve Becker <ste...@microsoft.com>
        Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
        Gerrit-Attention: Steve Becker <ste...@microsoft.com>
        Gerrit-Comment-Date: Tue, 24 Feb 2026 10:55:20 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Steve Becker (Gerrit)

        unread,
        Feb 24, 2026, 1:26:31 PM (7 days ago) Feb 24
        to Johannes Kron, Harald Alvestrand, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, bnc+...@chromium.org, net-r...@chromium.org, network-ser...@chromium.org
        Attention needed from Johannes Kron

        Steve Becker voted and added 1 comment

        Votes added by Steve Becker

        Commit-Queue+1

        1 comment

        File services/network/p2p/socket_udp.cc
        Line 597, Patchset 7: base::UmaHistogramSparse("WebRTC.P2P.UDP.SendResult", result_to_record);
        Johannes Kron . resolved
        Steve Becker

        Thanks for the tips. I updated to use the macro. There's [another UMA in `P2PSocketUdp` that uses the macro](https://source.chromium.org/chromium/chromium/src/+/main:services/network/p2p/socket_udp.cc;drc=329f8536e0668b0189a63c2465fe5a21c1165a91;l=348) for received packets, which suggests we should probably use the macro for recording sent packets.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Johannes Kron
        Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement is not satisfiedCode-Owners
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedReview-Enforcement
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I6b928a59a4b5c5afba4e4e03e3df09fbf04c444c
          Gerrit-Change-Number: 7573294
          Gerrit-PatchSet: 8
          Gerrit-Owner: Steve Becker <ste...@microsoft.com>
          Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
          Gerrit-Reviewer: Johannes Kron <kr...@chromium.org>
          Gerrit-Reviewer: Steve Becker <ste...@microsoft.com>
          Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
          Gerrit-Attention: Johannes Kron <kr...@chromium.org>
          Gerrit-Comment-Date: Tue, 24 Feb 2026 18:26:24 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: Yes
          Comment-In-Reply-To: Johannes Kron <kr...@chromium.org>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Johannes Kron (Gerrit)

          unread,
          Feb 25, 2026, 4:24:51 AM (6 days ago) Feb 25
          to Steve Becker, Harald Alvestrand, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, bnc+...@chromium.org, net-r...@chromium.org, network-ser...@chromium.org
          Attention needed from Steve Becker

          Johannes Kron voted Code-Review+1

          Code-Review+1
          Open in Gerrit

          Related details

          Attention is currently required from:
          • Steve Becker
          Submit Requirements:
            • requirement satisfiedCode-Coverage
            • requirement is not satisfiedCode-Owners
            • requirement satisfiedCode-Review
            • requirement satisfiedReview-Enforcement
            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
            Gerrit-MessageType: comment
            Gerrit-Project: chromium/src
            Gerrit-Branch: main
            Gerrit-Change-Id: I6b928a59a4b5c5afba4e4e03e3df09fbf04c444c
            Gerrit-Change-Number: 7573294
            Gerrit-PatchSet: 8
            Gerrit-Owner: Steve Becker <ste...@microsoft.com>
            Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
            Gerrit-Reviewer: Johannes Kron <kr...@chromium.org>
            Gerrit-Reviewer: Steve Becker <ste...@microsoft.com>
            Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
            Gerrit-Attention: Steve Becker <ste...@microsoft.com>
            Gerrit-Comment-Date: Wed, 25 Feb 2026 09:24:38 +0000
            Gerrit-HasComments: No
            Gerrit-Has-Labels: Yes
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Steve Becker (Gerrit)

            unread,
            Feb 25, 2026, 12:45:17 PM (6 days ago) Feb 25
            to Adam Rice, Johannes Kron, Harald Alvestrand, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, bnc+...@chromium.org, net-r...@chromium.org, network-ser...@chromium.org
            Attention needed from Adam Rice

            Steve Becker added 1 comment

            Patchset-level comments
            File-level comment, Patchset 8 (Latest):
            Steve Becker . resolved

            Adding Adam Rice to review //net/base/net_errors_win.cc. Please take a look when you have a moment

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Adam Rice
            Submit Requirements:
            • requirement satisfiedCode-Coverage
            • requirement is not satisfiedCode-Owners
            • requirement satisfiedCode-Review
            • requirement satisfiedReview-Enforcement
            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
            Gerrit-MessageType: comment
            Gerrit-Project: chromium/src
            Gerrit-Branch: main
            Gerrit-Change-Id: I6b928a59a4b5c5afba4e4e03e3df09fbf04c444c
            Gerrit-Change-Number: 7573294
            Gerrit-PatchSet: 8
            Gerrit-Owner: Steve Becker <ste...@microsoft.com>
            Gerrit-Reviewer: Adam Rice <ri...@chromium.org>
            Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
            Gerrit-Reviewer: Johannes Kron <kr...@chromium.org>
            Gerrit-Reviewer: Steve Becker <ste...@microsoft.com>
            Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
            Gerrit-Attention: Adam Rice <ri...@chromium.org>
            Gerrit-Comment-Date: Wed, 25 Feb 2026 17:45:10 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Adam Rice (Gerrit)

            unread,
            Feb 26, 2026, 6:42:18 AM (5 days ago) Feb 26
            to Steve Becker, Johannes Kron, Harald Alvestrand, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, bnc+...@chromium.org, net-r...@chromium.org, network-ser...@chromium.org
            Attention needed from Steve Becker

            Adam Rice added 2 comments

            Commit Message
            Line 26, Patchset 8 (Latest):
            Adam Rice . unresolved

            I think this CL will also have the effect that QUIC will also start retrying sends on WSAENOBUFS errors on Windows. This is probably a good thing, but it is worth explicitly mentioning in the CL description, particularly as that part of the change is not behind a feature flag.

            File services/network/p2p/socket_udp_unittest.cc
            Line 1714, Patchset 8 (Latest): base::RunLoop().RunUntilIdle();
            Adam Rice . unresolved
            It's best not to use `RunUntilIdle()` as it leads to flaky tests. Maybe do
            ```
            base::test::RunUntil([&] {
            return histograms.GetBucketCount("WebRTC.P2P.UDP.SendResult", net::OK) == 1;
            });
            ```
            ?
            Open in Gerrit

            Related details

            Attention is currently required from:
            • Steve Becker
            Submit Requirements:
              • requirement satisfiedCode-Coverage
              • requirement is not satisfiedCode-Owners
              • requirement satisfiedCode-Review
              • requirement is not satisfiedNo-Unresolved-Comments
              • requirement satisfiedReview-Enforcement
              Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
              Gerrit-MessageType: comment
              Gerrit-Project: chromium/src
              Gerrit-Branch: main
              Gerrit-Change-Id: I6b928a59a4b5c5afba4e4e03e3df09fbf04c444c
              Gerrit-Change-Number: 7573294
              Gerrit-PatchSet: 8
              Gerrit-Owner: Steve Becker <ste...@microsoft.com>
              Gerrit-Reviewer: Adam Rice <ri...@chromium.org>
              Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
              Gerrit-Reviewer: Johannes Kron <kr...@chromium.org>
              Gerrit-Reviewer: Steve Becker <ste...@microsoft.com>
              Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
              Gerrit-Attention: Steve Becker <ste...@microsoft.com>
              Gerrit-Comment-Date: Thu, 26 Feb 2026 11:41:46 +0000
              Gerrit-HasComments: Yes
              Gerrit-Has-Labels: No
              satisfied_requirement
              unsatisfied_requirement
              open
              diffy

              Adam Rice (Gerrit)

              unread,
              Feb 26, 2026, 6:46:20 AM (5 days ago) Feb 26
              to Steve Becker, Johannes Kron, Harald Alvestrand, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, bnc+...@chromium.org, net-r...@chromium.org, network-ser...@chromium.org
              Attention needed from Steve Becker

              Adam Rice voted and added 1 comment

              Votes added by Adam Rice

              Code-Review+1

              1 comment

              Patchset-level comments
              File-level comment, Patchset 8 (Latest):
              Adam Rice . resolved

              lgtm once `RunUntilIdle()` is removed.

              Open in Gerrit

              Related details

              Attention is currently required from:
              • Steve Becker
              Submit Requirements:
              • requirement satisfiedCode-Coverage
              • requirement satisfiedCode-Owners
              • requirement satisfiedCode-Review
              • requirement is not satisfiedNo-Unresolved-Comments
              • requirement satisfiedReview-Enforcement
              Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
              Gerrit-MessageType: comment
              Gerrit-Project: chromium/src
              Gerrit-Branch: main
              Gerrit-Change-Id: I6b928a59a4b5c5afba4e4e03e3df09fbf04c444c
              Gerrit-Change-Number: 7573294
              Gerrit-PatchSet: 8
              Gerrit-Owner: Steve Becker <ste...@microsoft.com>
              Gerrit-Reviewer: Adam Rice <ri...@chromium.org>
              Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
              Gerrit-Reviewer: Johannes Kron <kr...@chromium.org>
              Gerrit-Reviewer: Steve Becker <ste...@microsoft.com>
              Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
              Gerrit-Attention: Steve Becker <ste...@microsoft.com>
              Gerrit-Comment-Date: Thu, 26 Feb 2026 11:45:50 +0000
              Gerrit-HasComments: Yes
              Gerrit-Has-Labels: Yes
              satisfied_requirement
              unsatisfied_requirement
              open
              diffy

              Steve Becker (Gerrit)

              unread,
              Feb 26, 2026, 12:11:02 PM (5 days ago) Feb 26
              to Adam Rice, Johannes Kron, Harald Alvestrand, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, bnc+...@chromium.org, net-r...@chromium.org, network-ser...@chromium.org

              Steve Becker voted and added 3 comments

              Votes added by Steve Becker

              Commit-Queue+2

              3 comments

              Patchset-level comments
              File-level comment, Patchset 10 (Latest):
              Steve Becker . resolved

              Thanks for the reviews!

              Commit Message
              Line 26, Patchset 8:
              Adam Rice . resolved

              I think this CL will also have the effect that QUIC will also start retrying sends on WSAENOBUFS errors on Windows. This is probably a good thing, but it is worth explicitly mentioning in the CL description, particularly as that part of the change is not behind a feature flag.

              Steve Becker

              Great point. I updated the commit message.

              File services/network/p2p/socket_udp_unittest.cc
              Line 1714, Patchset 8: base::RunLoop().RunUntilIdle();
              Adam Rice . resolved
              It's best not to use `RunUntilIdle()` as it leads to flaky tests. Maybe do
              ```
              base::test::RunUntil([&] {
              return histograms.GetBucketCount("WebRTC.P2P.UDP.SendResult", net::OK) == 1;
              });
              ```
              ?
              Steve Becker

              Done

              Open in Gerrit

              Related details

              Attention set is empty
              Submit Requirements:
                • requirement satisfiedCode-Coverage
                • requirement satisfiedCode-Owners
                • requirement satisfiedCode-Review
                • requirement satisfiedReview-Enforcement
                Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                Gerrit-MessageType: comment
                Gerrit-Project: chromium/src
                Gerrit-Branch: main
                Gerrit-Change-Id: I6b928a59a4b5c5afba4e4e03e3df09fbf04c444c
                Gerrit-Change-Number: 7573294
                Gerrit-PatchSet: 10
                Gerrit-Owner: Steve Becker <ste...@microsoft.com>
                Gerrit-Reviewer: Adam Rice <ri...@chromium.org>
                Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
                Gerrit-Reviewer: Johannes Kron <kr...@chromium.org>
                Gerrit-Reviewer: Steve Becker <ste...@microsoft.com>
                Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
                Gerrit-Comment-Date: Thu, 26 Feb 2026 17:09:17 +0000
                Gerrit-HasComments: Yes
                Gerrit-Has-Labels: Yes
                Comment-In-Reply-To: Adam Rice <ri...@chromium.org>
                satisfied_requirement
                open
                diffy

                Steve Becker (Gerrit)

                unread,
                Feb 26, 2026, 1:28:42 PM (5 days ago) Feb 26
                to Adam Rice, Johannes Kron, Harald Alvestrand, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, bnc+...@chromium.org, net-r...@chromium.org, network-ser...@chromium.org

                Steve Becker voted Commit-Queue+2

                Commit-Queue+2
                Open in Gerrit

                Related details

                Attention set is empty
                Submit Requirements:
                • requirement satisfiedCode-Coverage
                • requirement satisfiedCode-Owners
                • requirement satisfiedCode-Review
                • requirement satisfiedReview-Enforcement
                Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                Gerrit-MessageType: comment
                Gerrit-Project: chromium/src
                Gerrit-Branch: main
                Gerrit-Change-Id: I6b928a59a4b5c5afba4e4e03e3df09fbf04c444c
                Gerrit-Change-Number: 7573294
                Gerrit-PatchSet: 10
                Gerrit-Owner: Steve Becker <ste...@microsoft.com>
                Gerrit-Reviewer: Adam Rice <ri...@chromium.org>
                Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
                Gerrit-Reviewer: Johannes Kron <kr...@chromium.org>
                Gerrit-Reviewer: Steve Becker <ste...@microsoft.com>
                Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
                Gerrit-Comment-Date: Thu, 26 Feb 2026 18:28:36 +0000
                Gerrit-HasComments: No
                Gerrit-Has-Labels: Yes
                satisfied_requirement
                open
                diffy

                Chromium LUCI CQ (Gerrit)

                unread,
                Feb 26, 2026, 1:41:48 PM (5 days ago) Feb 26
                to Steve Becker, Adam Rice, Johannes Kron, Harald Alvestrand, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org, bnc+...@chromium.org, net-r...@chromium.org, network-ser...@chromium.org

                Chromium LUCI CQ submitted the change with unreviewed changes

                Unreviewed changes

                8 is the latest approved patch-set.
                The change was submitted with unreviewed changes in the following files:

                ```
                The name of the file: services/network/p2p/socket_udp_unittest.cc
                Insertions: 4, Deletions: 10.

                The diff is too large to show. Please review the diff.
                ```

                Change information

                Commit message:
                P2PSocketUdp: Retry Send() after ERR_NO_BUFFER_SPACE

                Brings QUIC's `ERR_NO_BUFFER_SPACE` retry to `P2PSocketUdp`. See
                QuicChromiumPacketWriter::MaybeRetryAfterWriteError() for details:

                https://source.chromium.org/chromium/chromium/src/+/main:net/quic/quic_chromium_packet_writer.cc;l=272

                In the bug, customers provided logs that show `P2PSocketUdp` failing
                with `WSAENOBUFS` on Windows. This change maps `WSAENOBUFS` to
                `ERR_NO_BUFFER_SPACE` to match the equivalent POSIX error `ENOBUFS`.
                This new error mapping enables the QUIC retry on Windows.

                The rest of the change updates `P2PSocketUdp::DoSend()` to retry after
                the socket returns `ERR_NO_BUFFER_SPACE`. The retry is on a timer that
                starts at 1 millisecond. The timer interval doubles for each retry up to
                12 attempts for a total of 4095 milliseconds. The change treats retries
                like an async send operation by setting `send_pending_` to true while
                waiting for the retry timer.

                For diagnostics, this change adds a new log statement and histogram to
                determine the effectiveness of the retry.
                Bug: 332933530
                Change-Id: I6b928a59a4b5c5afba4e4e03e3df09fbf04c444c
                Reviewed-by: Johannes Kron <kr...@chromium.org>
                Reviewed-by: Adam Rice <ri...@chromium.org>
                Commit-Queue: Steve Becker <ste...@microsoft.com>
                Cr-Commit-Position: refs/heads/main@{#1590946}
                Files:
                • M net/base/net_errors_win.cc
                • M services/network/p2p/socket_udp.cc
                • M services/network/p2p/socket_udp.h
                • M services/network/p2p/socket_udp_unittest.cc
                • M tools/metrics/histograms/metadata/web_rtc/histograms.xml
                Change size: L
                Delta: 5 files changed, 542 insertions(+), 15 deletions(-)
                Branch: refs/heads/main
                Submit Requirements:
                • requirement satisfiedCode-Review: +1 by Johannes Kron, +1 by Adam Rice
                Open in Gerrit
                Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                Gerrit-MessageType: merged
                Gerrit-Project: chromium/src
                Gerrit-Branch: main
                Gerrit-Change-Id: I6b928a59a4b5c5afba4e4e03e3df09fbf04c444c
                Gerrit-Change-Number: 7573294
                Gerrit-PatchSet: 11
                Gerrit-Owner: Steve Becker <ste...@microsoft.com>
                Gerrit-Reviewer: Adam Rice <ri...@chromium.org>
                Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
                Gerrit-Reviewer: Harald Alvestrand <h...@chromium.org>
                Gerrit-Reviewer: Johannes Kron <kr...@chromium.org>
                Gerrit-Reviewer: Steve Becker <ste...@microsoft.com>
                open
                diffy
                satisfied_requirement
                Reply all
                Reply to author
                Forward
                0 new messages