summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-04-26 16:51:41 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-04-26 16:51:41 +0000
commit37a53f1ac69315f1915aae67a447fb7b813e8217 (patch)
tree57c0367cce15e2f81fcab530f35bf343505cfeb8 /include
parent225636f9d7aebe4556d1435fd6db04765f9a25cd (diff)
Make error reporting work properly, it seemed to loose errors.
First change: Add a culling list of inspsockets waiting to be closed, so the close() is less likely to be called before the buffer is entirely empty. This seems to work well on my LAN. Second change: Add a SendError() method, rather than WriteLine("ERROR : ..."). This can be used to effect by also echoing out "Sent ERROR to %s: ..." onto the +l snomask meaning at least one end will always see the error even if the ERROR command is lost due to latency or design of the transport (e.g. ssl which may be writing during a read event etc) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6844 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/inspircd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index bfd2ea421..d9918aa73 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -432,6 +432,8 @@ class InspIRCd : public classbase
public:
+ std::map<InspSocket*,InspSocket*> SocketCull;
+
/** Build the ISUPPORT string by triggering all modules On005Numeric events
*/
void BuildISupport();