Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(dnscoretest): add listening customisation points #10

Merged
merged 6 commits into from
Nov 22, 2024

Conversation

bassosimone
Copy link
Member

This change allows to customise how we create listening connections with dnscoretest. In turn, this opens up the possibility of reusing this code with custom listeners (e.g., rbmk-project/x/netsim).

This changeset implements saving the local and remote addr for
all the transports we support, improving data quality.

The changes should be obvious for all protocols but DoH, for which
we introduced a lower-level mechanism to collect this info, and namely
the HTTPClientDo function, opening up the possibility of advanced
customization code to create a connection on the fly. The previous
mechanism using HTTPClient is still working as intended.

Another minor change is refactoring the structured logging code
inside the slog.go and slog_test.go files.
This change allows to customise how we create listening connections
with dnscoretest. In turn, this opens up the possibility of reusing
this code with custom listeners (e.g., rbmk-project/x/netsim).
@bassosimone bassosimone merged commit 959e3be into main Nov 22, 2024
1 check passed
@bassosimone bassosimone deleted the feat/customdnscoretests branch November 22, 2024 08:02
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.

1 participant