google-code-export / lusca-cache

Automatically exported from code.google.com/p/lusca-cache
0 stars 0 forks source link

DNS based commConnectBegin() calls results in unconnected sockets.. #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When using a very slow nameserver for testing, I've discovered that the current 
codebase creates 
the socket for the forwarded connection -before- doing the DNS lookup. This is 
bad for a variety of 
reasons, including:

* tying up unbound sockets for hosts which may not exist;
* making the transport layer decision (ie, IPv4!) before the DNS reply has been 
parsed;
* it seems ugly.

I'm not sure if this is the best way of doing this..

Original issue reported on code.google.com by adrian.c...@gmail.com on 4 Apr 2009 at 2:31