Make running out of file descriptors non fatal.

Fix a bug that kills the RPC door if it gets a prohibited connection
This commit is contained in:
JoelKatz
2012-12-21 07:38:51 -08:00
parent 7d7738a7fa
commit d34c0e6a45
5 changed files with 56 additions and 15 deletions

View File

@@ -18,6 +18,7 @@ class PeerDoor
private:
boost::asio::ip::tcp::acceptor mAcceptor;
boost::asio::ssl::context mCtx;
boost::asio::deadline_timer mDelayTimer;
void startListening();
void handleConnect(Peer::pointer new_connection, const boost::system::error_code& error);