Skip to content
Browse files

fixed early timeouts for some clients

  • Loading branch information...
1 parent 2638a66 commit dc8e71b6f1ac19fd38f9cff4f147e6b841711d9a @jgnewman jgnewman committed May 14, 2012
Showing with 9 additions and 1 deletion.
  1. +9 −1 priv/admin/js/pjax.js
View
10 priv/admin/js/pjax.js
@@ -1,9 +1,17 @@
// jquery.pjax.js
// copyright chris wanstrath
// https://github.com/defunkt/jquery-pjax
+// Modified by Basho Technologies to fix a timeout issue for some clients.
(function($){
+// The following variable is in milliseconds.
+// It controls the ajax timeouts for page fetching attempts.
+// The pjax default was 650 but this is too early in some use cases.
+// We're setting it high here to account for most foreseeable circumstances.
+// - Basho
+var ajaxTimeout = 10000;
+
// When called on a link, fetches the href with ajax into the
// container specified as the first parameter or with the data-pjax
// attribute on the link itself.
@@ -180,7 +188,7 @@ var pjax = $.pjax = function( options ) {
pjax.defaults = {
- timeout: 650,
+ timeout: ajaxTimeout, // was previously 650 - Basho
push: true,
replace: false,
// We want the browser to maintain two separate internal caches: one for

0 comments on commit dc8e71b

Please sign in to comment.
Something went wrong with that request. Please try again.