meltwater / served

A C++11 RESTful web server library
MIT License
710 stars 174 forks source link

crash/kill/restart will complain "bind: Address already in use" #9

Open igenyar opened 9 years ago

igenyar commented 9 years ago

After killing, I restart the server and get the following error.

terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::system::system_error> >'
  what():  bind: Address already in use
Aborted (core dumped)
make: *** [run] Error 134

Looks like socket opt is not set correctly to allow reuse.

igenyar commented 9 years ago
commit ce334144fd5cf123940d8a96f1801355ef20fe09
Date:   Wed Sep 2 14:09:08 2015 +0100
Jeffail commented 8 years ago

Hey @igenyar, sorry for the late response. I'll take a look soon.

cjgdev commented 7 years ago

👍