Skip to content

Not-catched exception in boost::network::http::async_connection::start #611

@ikrukov

Description

@ikrukov

exceptions is thrown in this line:

ip_stream << socket_.remote_endpoint().address().to_v4().to_string() << ': '<<socket_.remote_endpoint().port();

Method to_v4 throws "bad_cast" when address is considered as v6 address.

For me its looks like bug, because it may be not obvious if listening address will be considered as v6 address. I faced with this problem when deployed application to Ubuntu 14.04 server, and run it on "localhost" address. In server address "localhost" is linked both to 127.0.0.1 ( v4 address ) and to ::1/128 (v6 address). Because of this application crashed on server, but runs perfectly on machines without ip v6 installed.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions