Skip to content

Error: "Protocol not available" #1509

Closed
@Kixunil

Description

@Kixunil

When trying to run the server:

let core = tokio_core::reactor::Core::new().unwrap();

// I tried both "127.0.0.1:8331", "0.0.0.0:8331" and even "[::1]:8331", also other ports
let addr = std::net::SocketAddr::new(config.bind_address, config.bind_port);
// ProxyHandle implements Service
let service = ProxyHandle(Rc::new(Proxy { config, client: HttpClient::new(&core.handle()), }));

let server = hyper::server::Http::new().bind(&addr, move || Ok(service.clone())).unwrap();
server.run().unwrap();

It panics with OS error "Protocol not available"

nc -l works, so I guess the problem is somewhere in hyper or its dependency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-serverArea: server.C-bugCategory: bug. Something is wrong. This is bad!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions