Remove out of date "todo" comment
Duplicate host records returned by getaddrinfo() and free the memory the sys call allocated
Allocated bigger I/O buffer, change how prefix buffer length is determined