Select to view content in your preferred language

Can I set different io.timeout for different queryTask.execute ?

1250
0
07-15-2016 12:47 PM
BlairJones
Occasional Contributor

esri.config.defaults.io.timeout

I have many sources with most completing under 20 seconds.  But one or two can take close to 150 seconds.

When I change esri.config.defaults.io.timeout to 150000 before a long task

and then set esri.config.defaults.io.timeout to 20000 for a short task, the long task throws timeout error at 20 seconds.

Is there a method to set io timeout for indiviual tasks?

Thanks, Dinosaur Blair

0 Kudos
0 Replies