Skip to content

Commit

Permalink
Increase timeout in CORS and JSON-P transports since the error handle…
Browse files Browse the repository at this point in the history
…rs are probably in a race with the server returning the response.
  • Loading branch information
jcoglan committed Oct 18, 2011
1 parent 4ddd612 commit fecd377
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion javascript/transport/cors.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Faye.Transport.CORS = Faye.extend(Faye.Class(Faye.Transport, {
cleanUp();
retry();
};
var timer = Faye.ENV.setTimeout(onerror, 1000 * timeout);
var timer = Faye.ENV.setTimeout(onerror, 1.5 * 1000 * timeout);
xhr.onerror = onerror;
xhr.ontimeout = onerror;

Expand Down
2 changes: 1 addition & 1 deletion javascript/transport/jsonp.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Faye.Transport.JSONP = Faye.extend(Faye.Class(Faye.Transport, {
var timer = Faye.ENV.setTimeout(function() {
cleanUp();
retry();
}, 1000 * timeout);
}, 1.5 * 1000 * timeout);

var cleanUp = function() {
if (!Faye.ENV[callbackName]) return false;
Expand Down

0 comments on commit fecd377

Please sign in to comment.