Turns out I had a circular reference in my PHP code. User.class.php was calling alert.func.php which was calling... User.class.php.
I think I might have just found my problem.
Additional testing:
Disabled the ajax code that checks user permissions to generate the TPM in mrp.ajax.php. Polling works as intended.
Re-enabled the PHP include for the user class. Polling problem returned.
Looks like I just caught a break.
Further testing:
Commented out the parts of the PHP code that write to the progress log file. No change in polling behavior.
Set mrp.ajax.php to run a function that loops from 1 to 1000000000 and doesn't do anything else. No change in polling behavior.
Disabled the ajax call to mrp.ajax.php...
I just tested this with an old version of the function that generates the TPM (let's hear it for redundant backups and SVN) and the problem persists. This is starting to look like it's not code related.
The old version was very slow, which is the primary reason I rewrote it, so I killed the...
I had made a change to the PHP function that generates the TPM. The function still writes to the progress log file and' does not generate any errors in the error log. I don't have access to the source code at this time, but that does give me a good place to start looking.
I'll take a look...
Platform: PHP 5.3.9 with jQuery 1.7.1
I'm at wit's end with this one. I'm firing off two asynchronous AJAX calls at the same time, generateTPM() and updateProgress(). generateTPM() initiates a process that takes 50 seconds and updateProgress() polls a text file containing a JSON object...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.