Skip to content

Querying via TCP broken #11

Description

@clue

This lib implements communication via UDP and TCP, however the TCP implementation is broken in several ways:

  • Messages sent over TCP (both directions) are to be prefixed by the message length, as per RFC 1035 section 4.2.2, here
  • Messages can be chunked and have to be reassembled based on the length prefix, here
  • Uses blocking stream_socket_client() call to connect to the DNS server, here
  • Uses Connection from the react/socket (server!) component, should use react/socket-client, here

Looks like some of these points are currently being addressed as part of #8.

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions