Server abort error in jquery.form.js (while uploading large files)

Server abort error in jquery.form.js (while uploading large files)

Hi,

I am using jquery plugin in our mvc application. when i try to upload a large file sometimes it works. However sometimes i get an error "server abort" after 10-15 minutes. After examining the plugin i think the error occurs from the below piece of code. I think the readystate got stuck in  uninitialized state and the below code causes an exception after few recursive calls.

  1. function checkState() {
  2.                     debugger;
  3.                     try {
  4.                         var state = getDoc(io).readyState;
  5.                         log('state = ' + state);
  6.                         if (state && state.toLowerCase() == 'uninitialized')
  7.                             setTimeout(checkState, 50);
  8.                     } catch(e) {
  9.                         log('Server abort: ', e, ' (', e.name, ')');
  10.                         cb(SERVER_ABORT);
  11.                         if (timeoutHandle)
  12.                             clearTimeout(timeoutHandle);
  13.                         timeoutHandle = undefined;
  14.                     }
  15.                 }