Closed
Description
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.