Subject: [Boost-bugs] [Boost C++ Libraries] #7605: resolve of ip::tcp::resolver fails when services file missed.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-10-30 07:23:34
#7605: resolve of ip::tcp::resolver fails when services file missed.
-------------------------------------+--------------------------------------
Reporter: dot <hacker931@â¦> | Owner: chris_kohlhoff
Type: Bugs | Status: new
Milestone: To Be Determined | Component: asio
Version: Boost 1.52.0 | Severity: Problem
Keywords: |
-------------------------------------+--------------------------------------
Services file: located in C:\Windows\System32\drivers\etc\services.
This file contains port numbers for well-known services defined by
IANA(from services file).
This file is missing on some users of our products, which leads to failure
of windows api ::getaddrinfo. getaddrinfo need to search in this file to
find the right port of http. Therefore method resolve() of
ip::tcp::resolver will always fail and throw one exception when invoked.
In this situation, we found that gethostbyname/inet_addr/gethostbyaddr can
work correctly.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7605> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:11 UTC