Merge pull request #39 from dbrock/master

Use set_reuse_addr in http_server
This commit is contained in:
Vikram Rajkumar 2014-09-15 15:00:34 -04:00
commit d44d72b0d9

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");
}