Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Rei Shimizu <[email protected]>
  • Loading branch information
Shikugawa committed Feb 27, 2025
1 parent 6d642fc commit 50df682
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ci/do_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -490,10 +490,10 @@ case $CI_TARGET in
# This doesn't go into CI but is available for developer convenience.
echo "bazel fastbuild build with tests..."
echo "Building..."
bazel_envoy_binary_build fastbuild
# bazel_envoy_binary_build fastbuild
echo "Testing ${TEST_TARGETS[*]}"
bazel test "${BAZEL_BUILD_OPTIONS[@]}" \
-c fastbuild "${TEST_TARGETS[@]}"
-c fastbuild //test/common/listener_manager:listener_manager_impl_test
;;

dev.contrib)
Expand Down
8 changes: 6 additions & 2 deletions source/common/listener_manager/listener_manager_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,12 @@ ListenerManagerImpl::setupSocketFactoryForListener(ListenerImpl& new_listener,
"when the reuse port isn't enabled",
new_listener.name()));
}

if (!(existing_listener.hasCompatibleAddress(new_listener) && same_socket_options)) {
if (existing_listener.hasDuplicatedAddress(new_listener) && new_listener.reusePort() == false) {
return absl::InvalidArgumentError(fmt::format("Listener {}: doesn't support update addresses "
"when the reuse port isn't enabled",
new_listener.name()));
}
if (!existing_listener.hasCompatibleAddress(new_listener)) {
RETURN_IF_NOT_OK(setNewOrDrainingSocketFactory(new_listener.name(), new_listener));
} else {
RETURN_IF_NOT_OK(new_listener.cloneSocketFactoryFrom(existing_listener));
Expand Down

0 comments on commit 50df682

Please sign in to comment.