Uploaded image for project: 'AeroGear'
  1. AeroGear
  2. AEROGEAR-4960

Duplicate emit of failure block after timeout on iOS 5

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.3.0
    • 1.2.0
    • None

    Description

      Prior to version 6, iOS didn't honour the timeout flag set on a url request. For this, the library added code to care for this situation (by attaching a timer on the request and on a timeout manually cancelling the request and emitting the failure block with error code '-1001' [request time out])

      On its current version, AFNetworking when receiving a cancel message it too emits the failure block but with different error code -999 [request couldn't be completed]

      This has the effect:
      a) duplicate call of the failure block
      b) different error codes. On iOS 5 we get '-999' and on iOS >= 6 '-1001' [request time out]

      Attachments

        Activity

          People

            cvasilak_jira Christos Vasilakis (Inactive)
            cvasilak_jira Christos Vasilakis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: