Skip to content

Issue 5676: Introduced useTcpForFallbackDnsResolving#6116

Open
cgm-aw wants to merge 1 commit into
eclipse-vertx:masterfrom
cgm-aw:feature/master-issue-5676-tcp-dns
Open

Issue 5676: Introduced useTcpForFallbackDnsResolving#6116
cgm-aw wants to merge 1 commit into
eclipse-vertx:masterfrom
cgm-aw:feature/master-issue-5676-tcp-dns

Conversation

@cgm-aw

@cgm-aw cgm-aw commented May 18, 2026

Copy link
Copy Markdown

See #5676

@vietj

vietj commented May 18, 2026

Copy link
Copy Markdown
Member

we should have a test for this that checks TCP is actually used

@cgm-aw

cgm-aw commented May 18, 2026

Copy link
Copy Markdown
Author

I added a test - I'm not really happy with it, this is Netty code it's testing, but it should do the job.
By the way: Building master from scratch is not not possible without locally building vertx-codegen and vertx-dependencies to have the snapshots available. If you want I add an update to the BUILDING.md.

Comment thread vertx-core/src/test/java/io/vertx/test/fakedns/MockDnsServer.java Outdated
Comment thread vertx-core/src/test/java/io/vertx/test/fakedns/MockDnsServer.java Outdated
.handler(new ChannelInitializer<DatagramChannel>() {
@Override
protected void initChannel(DatagramChannel ch) throws Exception {
if (!enableUdp) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think here we should refactor to avoid binding the UDP channel instead of checking the init, like you have done for startTcp

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a bit more tricky, look into the newest commit for the proposed change

Comment thread vertx-core/src/test/java/io/vertx/test/fakedns/MockDnsServer.java Outdated
Comment thread vertx-core/src/test/java/io/vertx/test/fakedns/MockDnsServer.java
@vietj vietj added this to the 5.2.0 milestone Jun 4, 2026
@vietj

vietj commented Jun 4, 2026

Copy link
Copy Markdown
Member

@cgm-aw can you address the confict on MockDnsServer with a rebase ? can you squash your contribution too ?

Issue 5676: Added test

Issue 5676: Reworked test

Issue 5676: CR Remarks

Issue 5676: CR Remarks

Issue 5676: CR Remarks
@cgm-aw cgm-aw force-pushed the feature/master-issue-5676-tcp-dns branch from 94228d5 to 75504a1 Compare June 5, 2026 06:20
@cgm-aw

cgm-aw commented Jun 5, 2026

Copy link
Copy Markdown
Author

@vietj sure done

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants