[Pkg-javascript-commits] [sockjs-client] 399/434: Allow longer connection time for ws (roundtrips = 2)
Tonnerre Lombard
tonnerre-guest at moszumanska.debian.org
Wed Jan 8 00:47:28 UTC 2014
This is an automated email from the git hooks/post-receive script.
tonnerre-guest pushed a commit to branch master
in repository sockjs-client.
commit 733f1da749f9267ec8d2e05238c440a88247729f
Author: Marek Majkowski <majek04 at gmail.com>
Date: Tue Apr 24 13:09:07 2012 +0100
Allow longer connection time for ws (roundtrips = 2)
---
lib/trans-websocket.js | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/lib/trans-websocket.js b/lib/trans-websocket.js
index e709cc3..5bd2e67 100644
--- a/lib/trans-websocket.js
+++ b/lib/trans-websocket.js
@@ -52,3 +52,9 @@ WebSocketTransport.prototype.doCleanup = function() {
WebSocketTransport.enabled = function() {
return !!(_window.WebSocket || _window.MozWebSocket);
};
+
+// In theory, ws should require 1 round trip. But in chrome, this is
+// not very stable over SSL. Most likely a ws connection requires a
+// separate SSL connection, in which case 2 round trips are an
+// absolute minumum.
+WebSocketTransport.roundTrips = 2;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/sockjs-client.git
More information about the Pkg-javascript-commits
mailing list