[Boost-bugs] [Boost C++ Libraries] #4690: boost::asio::ip::tcp::resolver fails to resolve query if service_name is empty

Subject: [Boost-bugs] [Boost C++ Libraries] #4690: boost::asio::ip::tcp::resolver fails to resolve query if service_name is empty
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-09-28 16:04:46


#4690: boost::asio::ip::tcp::resolver fails to resolve query if service_name is
empty
---------------------------------------------+------------------------------
 Reporter: Gennady Proskurin <gpr@…> | Owner: chris_kohlhoff
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: asio
  Version: Boost 1.44.0 | Severity: Problem
 Keywords: |
---------------------------------------------+------------------------------
 Documentation:
 http://www.boost.org/doc/libs/1_44_0/doc/html/boost_asio/reference/ip__basic_resolver_query/basic_resolver_query/overload3.html

 service_name
     A string identifying the requested service. This may be a descriptive
 name or a numeric string corresponding to a port number. May be an empty
 string, in which case all resolved endpoints will have a port number of 0.

 If empty service_name is specified, resolver returns error.
 According to documentation, it should resolve to endpoint which will have
 port number of 0.

 Test program attached.


 My system: 2.6-RELEASE DragonFly v2.6.3.43.gb67e7-RELEASE
 Boost 1.44 from pkgsrc.
 I think all systems are affected.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4690>
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:04 UTC