You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "James E. King III (JIRA)" <ji...@apache.org> on 2019/01/14 15:04:04 UTC

[jira] [Resolved] (THRIFT-4179) sendSynchronousRequest is now technically deprecated

     [ https://issues.apache.org/jira/browse/THRIFT-4179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James E. King III resolved THRIFT-4179.
---------------------------------------
       Resolution: Won't Do
         Assignee: James E. King III
    Fix Version/s: 1.0

As support for the older cocoa compiler and library have been removed (see THRIFT-4719), all of the issues in Jira related to that code have also been removed.  For legacy cocoa support you can use version 0.12.0 - everyone is expected to move to swift if they want to use the next release of Thrift.

> sendSynchronousRequest is now technically deprecated
> ----------------------------------------------------
>
>                 Key: THRIFT-4179
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4179
>             Project: Thrift
>          Issue Type: Dependency upgrade
>          Components: Cocoa - Compiler, Cocoa - Library
>            Reporter: owen hay
>            Assignee: James E. King III
>            Priority: Major
>             Fix For: 1.0
>
>
> 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. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)