But this doesn't work - the legacy Squid-2 comm code does this:
- Create an AF_INET socket via comm_open();
- Pass that socket to commConnectStart() with the relevant hostname or IPv4 address to connect to.
So now I'll have to change the comm API slightly to make commConnectStart() return a FD on completion, rather than taking a socket to connect to. This will also fix a long-standing hatred of mine - where Squid/Lusca opens up a socket that just sits there until DNS lookups succeed. Ew.