[Pkg-javascript-commits] [ltx] 73/469: router: end half-closed streams

Jonas Smedegaard dr at jones.dk
Wed Aug 31 13:01:03 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 9a4ac3c96fbe4a1019f138cbd2ef355cdaab5dbd
Author: Astro <astro at spaceboyz.net>
Date:   Sun Sep 5 20:13:21 2010 +0200

    router: end half-closed streams
---
 lib/xmpp/router.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/xmpp/router.js b/lib/xmpp/router.js
index d3699d1..40f11c7 100644
--- a/lib/xmpp/router.js
+++ b/lib/xmpp/router.js
@@ -173,6 +173,10 @@ DomainContext.prototype.setupStream = function(domain, stream) {
 
 	self.receive(stanza);
     });
+    // We won't deal with half-closed connections
+    stream.addListener('end', function() {
+	stream.end();
+    });
     stream.addListener('error', function() {
 	if (stream.writable)
 	    stream.send('</stream:stream>');

-- 
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