CSocket: Close sockets which cause a EMFILE

This now closes listening sockets if we hit some fd limit like we are already
doing in CRealListener.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1544 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2009-06-18 19:32:12 +00:00
parent b56f173804
commit 7f7341dc2a
2 changed files with 9 additions and 0 deletions
+1
View File
@@ -151,6 +151,7 @@ public:
// This defaults to closing the socket, feel free to override
virtual void ReachedMaxBuffer();
virtual void SockError(int iErrno);
bool Connect(const CString& sHostname, unsigned short uPort, bool bSSL = false, unsigned int uTimeout = 60);
bool Listen(unsigned short uPort, bool bSSL = false, unsigned int uTimeout = 0);