Chromium Code Reviews
DescriptionDo hostname resolution. Interesting questions to ponder:
- Do we still need the DNS API? Originally this was broken out separately to make it match the low-level network APIs. But (a) it felt like needless busywork for the developer who just wanted to connect to a host, and (b) it's necessary to pass a hostname to connect() to provide a match with host permissions in the manifest.
- We do NOT do the same work for socket.bind(). It doesn't quite make sense to bind to a hostname (unless the hostname is "localhost"). Using a hostname is certainly possible, but requiring an IP address for now is probably reasonable.
BUG=110520
TEST=They still work when enhanced to use "localhost" appropriately.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=141101
Patch Set 1 : Patch Set 1 #
Total comments: 5
Patch Set 2 : Fixed DNS browser test. #Patch Set 3 : mihaip's comments + clang fix. #Messages
Total messages: 10 (0 generated)
|