New AIR 2.0 API: URLRequest.idleTimeout

We recently added a new AIR 2.0 API which didn’t make it into my MAX presentation:

  • URLRequest.idleTimeout
  • URLRequestDefaults.idleTimeout

These setters specify the amount of time (in milliseconds) that a connection will remain open before receiving any data. Certainly not as sexy as some of our other new features (native processes, file promises, multi-touch, accessibility, volume detection, socket servers, etc.), but if you’re trying to use long polling, you’ll probably find this API useful.