[Pkg-javascript-commits] [ltx] 81/469: connection: error('xml-not-well-formed')

Jonas Smedegaard dr at jones.dk
Wed Aug 31 13:01:05 UTC 2016


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository ltx.

commit e50719110a16310fdc166e493195c5e787471fff
Author: Astro <astro at spaceboyz.net>
Date:   Mon Sep 6 00:09:03 2010 +0200

    connection: error('xml-not-well-formed')
---
 lib/xmpp/connection.js | 3 +--
 lib/xmpp/router.js     | 2 --
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/lib/xmpp/connection.js b/lib/xmpp/connection.js
index 9e350f8..4ad7da6 100644
--- a/lib/xmpp/connection.js
+++ b/lib/xmpp/connection.js
@@ -109,8 +109,7 @@ Connection.prototype.startParser = function() {
 		self.element = null;
 	    }
 	} else {
-	    self.emit('parseError');
-	    self.end();
+	    self.error('xml-not-well-formed', 'XML parse error');
 	}
     });
     self.parser.addListener('text', function(str) {
diff --git a/lib/xmpp/router.js b/lib/xmpp/router.js
index 2b044f7..c6c0860 100644
--- a/lib/xmpp/router.js
+++ b/lib/xmpp/router.js
@@ -210,11 +210,9 @@ DomainContext.prototype.receive = function(stanza) {
 
 /**
  * TODO:
- * * recv stanzas
  * * karma
  * * nameprep
  * * timeouts
- * * parser errors
  * * keepAlive
  * * TLS
  */

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/ltx.git



More information about the Pkg-javascript-commits mailing list