mirror of
https://github.com/php-win-ext/grpc.git
synced 2026-03-25 01:22:07 +01:00
When a `std::multimap` has multiple entries with the same key, calling `m.find(key)` returns an unspecified element. Historically, this returns the first matching element. However, this is not guaranteed, and recent libc++ changes make this return an arbitrary element. Using `m.equal_range(key)` is a replacement that will preserve the current behavior. The behavior of this is guaranteed to return a range of all matching elements in insertion order, and the beginning of the range is the same element as what's normally returned by `m.find(key)`. Closes #41279 COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/41279 from rupprecht:multimap-find 70b116441d03eff80523e010b25336f5a75c70c2 PiperOrigin-RevId: 852844558
Running a test locally during development
To start a server during development:
- Choose an available port number.
- Start the server:
GRPC_VERBOSITY=DEBUG ibazel run --compilation_mode=dbg //test/cpp/interop:interop_server -- --port={port_number}
- Start the client:
GRPC_VERBOSITY=DEBUG ibazel run --test_output=streamed //test/cpp/interop:interop_client -- --server_port={port_number} --test_case={test_case}