[TIMOB-3278] HTTP Request Timeout
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-05-17T16:35:57.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.7.0, Sprint 2011-11 |
Components | iOS |
Labels | ios, release-1.7.0 |
Reporter | Reggie Seagraves |
Assignee | Jacob Relkin |
Created | 2011-04-15T03:41:11.000+0000 |
Updated | 2011-05-17T16:35:57.000+0000 |
Description
Client code needs to be able to specify timeouts for HTTP Requests.
Doesn't this work for you?
Seems to be ok for me (1.7.0 and has been for a long time since 1.4ish)
Given that it needs to be set before open() and send()
Note use of xhr.timeout = xxxx rather than xhr.setTimout(xxxx)
@kosso,
Does this work on iOS?
This is represented in KitchenSink at Platform>XHR>setTimeout. Verified functioning as expected with SDK 1.7.0RC1 on iPhone 4 4.2.6 and android devices. Code example is: var xhr = Ti.Network.createHTTPClient(); xhr.setTimeout(30000); Closing.