)]}'
{
  "commit": "02d0d979a88f65384e50e69988850e8f88516f73",
  "tree": "e389b91fedc33b8bc78a30e1930945b0bed319e4",
  "parents": [
    "a79cf0aa5494e25462631e6ea157a429a84e9595"
  ],
  "author": {
    "name": "QUICHE team",
    "email": "quiche-dev@google.com",
    "time": "Tue Nov 24 10:12:14 2026 -0800"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Tue Nov 24 10:13:23 2026 -0800"
  },
  "message": "Bind wildcard ephemeral port directly for QUIC preferred-address tests\n\nPreferred-address tests in `EndToEndTest::Initialize()` previously started the server bound to `TestLoopback()` on port 0, stopped it, and restarted it bound to `Any4()` or `Any6()` on that port. When test shards share a network namespace, another shard can already hold that port on another loopback address (such as `TestLoopback(2)`), causing the wildcard rebind to fail with `EADDRINUSE`.\n\nWhen `use_preferred_address_` is set, bind directly to `Any4()` or `Any6()` on port 0 in a single `StartServer()` call instead of starting on `TestLoopback()` and restarting. Defer configuring the server preferred address (`TestLoopback(2)`) until `ServerThread::Initialize()` assigns the ephemeral port, then update `server_address_`, `server_listening_address_`, `server_preferred_address_`, `server_config_`, and the server\u0027s `QuicConfig` via `QuicServerPeer::GetConfig()` before `ServerThread::Start()`.\n\nAlso fix port reservation across server restarts in `StopServer()` and `StartServer()`:\n- Reset `server_thread_` in `StopServer()` after `Quit()`/`Join()` so the server\u0027s listening socket is closed before reserving the port.\n- Reserve `server_listening_address_` (when set) instead of `server_address_`.\n- Check the `bool` return value of `QuicUdpSocketApi::Bind()` instead of comparing against `\u003c 0`, and destroy/reset `fd_` on bind failure.\n- In `StartServer()`, reset `server_thread_` and clean up `server_writer_` before failing if binding returns port 0.\n\nPiperOrigin-RevId: 1029149795\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "f1c301def1fa555b477956f3b868054987cb6f11",
      "old_mode": 33188,
      "old_path": "quiche/quic/core/http/end_to_end_test.cc",
      "new_id": "d3b34436a892db4797ef64f8d86a9f82e3068ea8",
      "new_mode": 33188,
      "new_path": "quiche/quic/core/http/end_to_end_test.cc"
    },
    {
      "type": "modify",
      "old_id": "bf33eb3809ca25074430ea5aaccaef1b349e39fd",
      "old_mode": 33188,
      "old_path": "quiche/quic/test_tools/quic_server_peer.cc",
      "new_id": "a2899ed60f49137618850c698a4bceefc832faa7",
      "new_mode": 33188,
      "new_path": "quiche/quic/test_tools/quic_server_peer.cc"
    },
    {
      "type": "modify",
      "old_id": "29a36d45065f38d1d84ea3971cbc2a6b9b04d377",
      "old_mode": 33188,
      "old_path": "quiche/quic/test_tools/quic_server_peer.h",
      "new_id": "93a9e96262130ebc12549284f204412de6a25e7b",
      "new_mode": 33188,
      "new_path": "quiche/quic/test_tools/quic_server_peer.h"
    }
  ]
}
