Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-4179

sendSynchronousRequest is now technically deprecated

    XMLWordPrintableJSON

Details

    Description

      iOS 9 marks the deprecation of the sendSynchronousRequest API. There is a new setup for sending asynch http requests via the NSSession API. This will break thrift generated Cocoa because you rely on bubbling up NSExceptions after a blocking request. Now the approved pattern has changed to a callback oriented architecture. There would likely be changes required to both compiler and library in order to accomodate this. You could also just stitch in a synchronous blocking call using a semaphore block like detailed here:
      https://forums.developer.apple.com/thread/11519

      But that's not really in the spirit of why apple is deprecating synch requests.

      Attachments

        Activity

          People

            jking3 James E. King III
            owenhay owen hay
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: