actix / actix-web

Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust.
https://actix.rs
Apache License 2.0
21.68k stars 1.68k forks source link

Start server from RawFd #105

Closed ghost closed 6 years ago

ghost commented 6 years ago

Cargo watch does not work because the sometimes the socket that's running will not be closed in time. That's why catflap exists. The problem is that the actix-web server does not allow for servers to be created from a raw file descriptor.

https://github.com/passcod/catflap

There are integrations with hyper and iron but not with actix-web.

fafhrd91 commented 6 years ago

Would you provide RawFd integration? Should be pretty strait forward.

fafhrd91 commented 6 years ago

actually, i think server should accept TcpListener. then you can construct TcpListener from RawFd yourself

fafhrd91 commented 6 years ago

it is possible to use HttpServer::listen() for rawfd