From bb8a1e7588a897054ccfb03786adc9db2504acee Mon Sep 17 00:00:00 2001 From: ehouse Date: Sun, 4 Sep 2005 20:37:42 +0000 Subject: [PATCH] send notice when a socket closes. This seems to be resulting in dups. --- relay/cref.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/relay/cref.cpp b/relay/cref.cpp index efa86345d..e94e99842 100644 --- a/relay/cref.cpp +++ b/relay/cref.cpp @@ -422,6 +422,8 @@ CookieRef::handleEvents() break; case XW_ACTION_REMOVESOCKET: + notifyOthers( evt.u.rmsock.socket, XWRELAY_DISCONNECT_OTHER, + XWRELAY_ERROR_LOST_OTHER ); removeSocket( &evt ); break; @@ -668,7 +670,8 @@ CookieRef::_PrintCookieInfo( string& out ) out += "\n"; out += "ID: "; char buf[64]; - snprintf( buf, sizeof(buf), "%ld\n", GetCookieID() ); + + snprintf( buf, sizeof(buf), "%d\n", GetCookieID() ); out += buf; snprintf( buf, sizeof(buf), "Bytes sent: %d\n", m_totalSent );