Merge pull request #39 from dbrock/master
Use set_reuse_addr in http_server
This commit is contained in:
commit
d44d72b0d9
1 changed files with 1 additions and 0 deletions
|
|
@ -49,6 +49,7 @@ namespace fc { namespace http {
|
||||||
public:
|
public:
|
||||||
impl(){}
|
impl(){}
|
||||||
impl(const fc::ip::endpoint& p ) {
|
impl(const fc::ip::endpoint& p ) {
|
||||||
|
tcp_serv.set_reuse_address();
|
||||||
tcp_serv.listen(p);
|
tcp_serv.listen(p);
|
||||||
accept_complete = fc::async([this](){ this->accept_loop(); }, "http_server accept_loop");
|
accept_complete = fc::async([this](){ this->accept_loop(); }, "http_server accept_loop");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue