]> git.netwichtig.de Git - user/henk/code/inspircd.git/commit
Make error reporting work properly, it seemed to loose errors.
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 26 Apr 2007 16:51:41 +0000 (16:51 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 26 Apr 2007 16:51:41 +0000 (16:51 +0000)
commit37a53f1ac69315f1915aae67a447fb7b813e8217
tree57c0367cce15e2f81fcab530f35bf343505cfeb8
parent225636f9d7aebe4556d1435fd6db04765f9a25cd
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
include/inspircd.h
src/inspircd.cpp
src/inspsocket.cpp
src/modules/m_spanningtree/treesocket.h
src/modules/m_spanningtree/treesocket1.cpp
src/modules/m_spanningtree/treesocket2.cpp