AKSW / RDFauthor

RDFauthor creates formular widgets out of RDFa-enhanced webpages.
http://aksw.org/Projects/RDFauthor
GNU General Public License v3.0
18 stars 5 forks source link

Increase AJAX timeout #41

Closed Matthimatiker closed 10 years ago

Matthimatiker commented 10 years ago

This pull request increases the timeout for AJAX calls from 2 to 10 seconds.

When using RDFauthor to create instances I noticed a lot of aborted AJAX calls, which was related to the timeout of 2 seconds. Considering the number of AJAX requests that are triggered by RDFauthor, the timeout of 2 seconds seems to be to low to answer all of them, so I raised it up to 10 seconds (5 seconds were not enough on my machine).

There might be better solutions (for example combining some of the requests), but for now this seems to be the easiest solution.

nareike commented 10 years ago

We also stumbled upon this somewhat short timeout, but I wouldn't increase it in this way (i.e. exchanging one literal with another literal). There is already a config file (rdfauthor.config.js) which could be extended to hold timeout values (and probably other options as well). On the other hand, there are also some RDFauthor config variables in the Base.php [1], but the config file mentioned earlier seems to be a more natural choice in my opinion. If you find the time, I'd be glad if you could implement this. Since we also need that increased timeout, I would also do it in the next days, so no sweat. ;)

  1. OntoWiki/application/classes/OntoWiki/Controller/