Skip to content

{182782396} Look up peer's short hostname#5739

Merged
riverszhang89 merged 1 commit intobloomberg:mainfrom
riverszhang89:nofqdn
Mar 8, 2026
Merged

{182782396} Look up peer's short hostname#5739
riverszhang89 merged 1 commit intobloomberg:mainfrom
riverszhang89:nofqdn

Conversation

@riverszhang89
Copy link
Contributor

This patch includes a slight refactoring around hostname lookup, also fixes incorrect IP address when peer drops connection.

@riverszhang89 riverszhang89 marked this pull request as draft February 16, 2026 04:04
Copy link

@roborivers roborivers left a comment

Choose a reason for hiding this comment

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

Cbuild submission: Error ⚠.
Regression testing: 0/0 tests failed ⚠.

@riverszhang89 riverszhang89 marked this pull request as ready for review February 23, 2026 18:45
Copy link

@roborivers roborivers left a comment

Choose a reason for hiding this comment

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

Cbuild submission: Success ✓.
Regression testing: Success ✓.

The first 10 failing tests are:
silogdel [core dumped]
consumer_non_atomic_default_consumer_generated

Signed-off-by: Rivers Zhang <hzhang320@bloomberg.net>
static int get_hostname_by_addr(struct sockaddr_in *addr, char *host, socklen_t hostlen)
{
int rc;
int flags = gbl_get_peer_fqdn ? 0 : NI_NOFQDN;
Copy link
Contributor

Choose a reason for hiding this comment

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

curious where we defined this

Copy link
Contributor

@rishitha957 rishitha957 left a comment

Choose a reason for hiding this comment

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

makes sense, we use NI_NOFQDN flag to either get short or fqdn

Copy link

@roborivers roborivers left a comment

Choose a reason for hiding this comment

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

Cbuild submission: Success ✓.
Regression testing: Success ✓.

The first 10 failing tests are:
sc_resume_logicalsc_generated
reco-ddlk-sql
consumer_non_atomic_default_consumer_generated

@riverszhang89 riverszhang89 merged commit a1a634c into bloomberg:main Mar 8, 2026
4 checks passed
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.

3 participants