Skip to content

Unit test failure http_client_get_test on MSVC 10.0 #78

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
glynos opened this issue Dec 4, 2011 · 2 comments
Closed

Unit test failure http_client_get_test on MSVC 10.0 #78

glynos opened this issue Dec 4, 2011 · 2 comments

Comments

@glynos
Copy link
Member

glynos commented Dec 4, 2011

8: Test command: D:\Sandbox\cpp-netlib-1_45\tests\cpp-netlib-http-client_get_test.exe
8: Test timeout computed to be: 9.99988e+006
8: Running 12 test cases...
8: D:/Sandbox/cpp-netlib/libs/network/test/http/client_get_test.cpp(18): fatal error in "http_client_get_test<struct boost::network::http::basic_client<struct boost::network::http::tags::http_default_8bit_tcp_resolve,1,0

": exception thrown by response = client_.get(request)
8: D:/Sandbox/cpp-netlib/libs/network/test/http/client_get_test.cpp(18): fatal error in "http_client_get_test<struct boost::network::http::basic_client<struct boost::network::http::tags::http_default_8bit_udp_resolve,1,0
": exception thrown by response = client_.get(request)
8: D:/Sandbox/cpp-netlib/libs/network/test/http/client_get_test.cpp(18): fatal error in "http_client_get_test<struct boost::network::http::basic_client<struct boost::network::http::tags::http_keepalive_8bit_tcp_resolve,1
,0>>": exception thrown by response = client_.get(request)
8: D:/Sandbox/cpp-netlib/libs/network/test/http/client_get_test.cpp(18): fatal error in "http_client_get_test<struct boost::network::http::basic_client<struct boost::network::http::tags::http_keepalive_8bit_udp_resolve,1
,0>>": exception thrown by response = client_.get(request)
8:
8: D:/Sandbox/cpp-netlib/libs/network/test/http/client_get_test.cpp(18): fatal error in "http_client_get_test<struct boost::network::http::basic_client<struct boost::network::http::tags::http_async_8bit_udp_resolve,1,0>>
": exception thrown by response = client_.get(request)
8: D:/Sandbox/cpp-netlib/libs/network/test/http/client_get_test.cpp(18): fatal error in "http_client_get_test<struct boost::network::http::basic_client<struct boost::network::http::tags::http_async_8bit_tcp_resolve,1,0>>
": exception thrown by response = client_.get(request)
8: D:/Sandbox/cpp-netlib/libs/network/test/http/client_get_test.cpp(18): fatal error in "http_client_get_test<struct boost::network::http::basic_client<struct boost::network::http::tags::http_default_8bit_tcp_resolve,1,1
": exception thrown by response = client_.get(request)
8: D:/Sandbox/cpp-netlib/libs/network/test/http/client_get_test.cpp(18): fatal error in "http_client_get_test<struct boost::network::http::basic_client<struct boost::network::http::tags::http_default_8bit_udp_resolve,1,1
": exception thrown by response = client_.get(request)
8: *** 12 failures detected in test suite "HTTP 1.0 Get Test"
8: D:/Sandbox/cpp-netlib/libs/network/test/http/client_get_test.cpp(18): fatal error in "http_client_get_test<struct boost::network::http::basic_client<struct boost::network::http::tags::http_keepalive_8bit_tcp_resolve,1
,1>>": exception thrown by response = client_.get(request)
8: D:/Sandbox/cpp-netlib/libs/network/test/http/client_get_test.cpp(18): fatal error in "http_client_get_test<struct boost::network::http::basic_client<struct boost::network::http::tags::http_keepalive_8bit_udp_resolve,1
,1>>": exception thrown by response = client_.get(request)
8: D:/Sandbox/cpp-netlib/libs/network/test/http/client_get_test.cpp(18): fatal error in "http_client_get_test<struct boost::network::http::basic_client<struct boost::network::http::tags::http_async_8bit_udp_resolve,1,1>>
": exception thrown by response = client_.get(request)
8: D:/Sandbox/cpp-netlib/libs/network/test/http/client_get_test.cpp(18): fatal error in "http_client_get_test<struct boost::network::http::basic_client<struct boost::network::http::tags::http_async_8bit_tcp_resolve,1,1>>
": exception thrown by response = client_.get(request)
8/16 Test #8: cpp-netlib-http-client_get_test .....................***Failed 0.87 sec

The exception thrown refers to a "short read". More information about this can be found here:

http://www.boost.org/doc/libs/1_48_0/doc/html/boost_asio/overview/core/streams.html

@glynos
Copy link
Member Author

glynos commented Dec 10, 2011

This bug was introduced by the URI parser. Tests pass now on 0.9-devel branch on MSVC 10.0 & GCC 4.4.

@glynos glynos closed this as completed Dec 10, 2011
@deanberris deanberris reopened this Apr 12, 2012
@deanberris
Copy link
Member

Actually, this is because of HTTPS failures with Asio's short-read. Fix incoming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants