« Referencing ActionScript Reserved Words in E4X | Main | Global Error Handling in AIR 2.0 and Flash 10.1 »
October 27, 2009
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.idleTimeoutURLRequestDefaults.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.
Posted by cantrell at October 27, 2009 11:15 AM
Comments
And what about this one?
http://bugs.adobe.com/jira/browse/FP-6
Socket servers will be quite useless if AIR2.0 did not get this feature.
Posted by: maliboo at October 28, 2009 3:09 AM
We are looking at the possibility of implementing a PROGRESS_EVENT on Sockets, but I don't think it will make it into AIR 2.0. We're also looking at some other improvements around how data is written to sockets. Hopefully we'll get these features in soon after 2.0.
Christian
Posted by: Christian Cantrell at October 28, 2009 10:07 AM