mirror of
https://github.com/znc/znc.git
synced 2026-07-07 02:11:20 +02:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user