8000 Intermittent failures when querying over TCP, possibly due to keep-alives · Issue #223 · dnsjava/dnsjava · GitHub
[go: up one dir, main page]

Skip to content
Intermittent failures when querying over TCP, possibly due to keep-alives #223
Closed
@ivanr

Description

@ivanr

We're using dnsjava (currently at 3.4.1) in our application to test configuration of DNS servers. We've noticed intermittent failures of TCP queries with servers that otherwise have no problem responding over TCP. Looking at the network capture, I notice that there appears to be a TCP keep-alive mechanism in dnsjava. In the one failure I managed to capture, the first query over TCP works fine, but the subsequent query fails and we observe a RST from the server.

How can we disable TCP keep alives? They are not appropriate for our use case because we'd like our zone tests to be deterministic. At the moment, our test of one zone is reusing a TCP connection of some other zone and we would like to avoid that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0