22 August 2008 ~ 4 Comments

Need Help: Change URLLoader Timeout?

I'm working on a project in which I make calls to a REST API using URLLoaders.  One of the calls I make can take up to 80 seconds to respond, but it seems as though URLLoader times out after 60 seconds.  I've scoured the ActionScript documentation, but haven't seen anything about a timeout property.  Does anyone know of a way to change this value on a URLLoader?

Reblog this post [with Zemanta]

  • http://blog.davr.org/ David R

    Is it feasible to change your REST API such that it doesn’t have such long returns? Maybe one API call which starts the task on the server-side, and then returns immediately “job started id #1234″, then a separate API call which you can poll to find if job #1234 is completed yet, and perhaps even return a %age which you can display to the user? 80 seconds is a long time for a user to wait with no feedback.

  • http://blog.davr.org/ David R

    Is it feasible to change your REST API such that it doesn’t have such long returns? Maybe one API call which starts the task on the server-side, and then returns immediately “job started id #1234″, then a separate API call which you can poll to find if job #1234 is completed yet, and perhaps even return a %age which you can display to the user? 80 seconds is a long time for a user to wait with no feedback.

  • http://www.bryanbartow.com bryanbartow

    @David R Unfortunately, the API is not mine. It’s the API of micro-blogging service Rejaw.

  • http://www.bryanbartow.com Bryan

    @David R Unfortunately, the API is not mine. It’s the API of micro-blogging service Rejaw.