Permalink
Browse files

Logging max_xmpp_stanza_size when stream is terminated due to abuse.

  • Loading branch information...
1 parent 9c0c655 commit 58bad5b6fbc492e496fdc3af8c8712e39ad02138 @satyamshekhar satyamshekhar committed Apr 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/xmpp-proxy.js
View
@@ -280,7 +280,7 @@ dutil.copy(XMPPProxy.prototype, {
log.debug("%s %s _on_data RECD: %s", this._void_star.session.sid, this._void_star.name, d);
this._current_stanza_size += d.length;
if (this._current_stanza_size > this._max_xmpp_stanza_size) {
- log.info("% %s _on_data: will terminate stream - the max_xmpp_stanza_size exceeded", this._void_star.session.sid, this._void_star.name);
+ log.info("% %s _on_data: will terminate stream - the max_xmpp_stanza_size(%s) exceeded", this._void_star.session.sid, this._void_star.name, this._max_xmpp_stanza_size);
this._on_stream_end();
} else {
this._parser.parse(d);

0 comments on commit 58bad5b

Please sign in to comment.