Use set_reuse_addr in http_server

This commit is contained in:
Daniel Brockman 2014-09-15 20:30:31 +02:00
parent b0c68813cb
commit 7b8394a781

View file

@ -49,6 +49,7 @@ namespace fc { namespace http {
public:
impl(){}
impl(const fc::ip::endpoint& p ) {
tcp_serv.set_reuse_address();
tcp_serv.listen(p);
accept_complete = fc::async([this](){ this->accept_loop(); }, "http_server accept_loop");
}