{"action":"created","issue":{"url":"https://api.github.com/repos/robbiehanson/CocoaAsyncSocket/issues/661","repository_url":"https://api.github.com/repos/robbiehanson/CocoaAsyncSocket","labels_url":"https://api.github.com/repos/robbiehanson/CocoaAsyncSocket/issues/661/labels{/name}","comments_url":"https://api.github.com/repos/robbiehanson/CocoaAsyncSocket/issues/661/comments","events_url":"https://api.github.com/repos/robbiehanson/CocoaAsyncSocket/issues/661/events","html_url":"https://github.com/robbiehanson/CocoaAsyncSocket/issues/661","id":373467307,"node_id":"MDU6SXNzdWUzNzM0NjczMDc=","number":661,"title":"startTLS doesn't work for me","user":{"login":"ws752958369","id":15607355,"node_id":"MDQ6VXNlcjE1NjA3MzU1","avatar_url":"https://avatars1.githubusercontent.com/u/15607355?v=4","gravatar_id":"","url":"https://api.github.com/users/ws752958369","html_url":"https://github.com/ws752958369","followers_url":"https://api.github.com/users/ws752958369/followers","following_url":"https://api.github.com/users/ws752958369/following{/other_user}","gists_url":"https://api.github.com/users/ws752958369/gists{/gist_id}","starred_url":"https://api.github.com/users/ws752958369/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ws752958369/subscriptions","organizations_url":"https://api.github.com/users/ws752958369/orgs","repos_url":"https://api.github.com/users/ws752958369/repos","events_url":"https://api.github.com/users/ws752958369/events{/privacy}","received_events_url":"https://api.github.com/users/ws752958369/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-24T12:54:05Z","updated_at":"2018-10-25T14:03:56Z","closed_at":null,"author_association":"NONE","body":"Pod Using CocoaAsyncSocket (7.6.3)\r\n\r\n- (void)openClient\r\n{\r\n    dispatch_queue_t delegateQueue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);\r\n    self.clientSocket = [[GCDAsyncSocket alloc] initWithDelegate:self delegateQueue:delegateQueue];\r\n    [self.clientSocket setIPv4PreferredOverIPv6:NO];\r\n    \r\n    NSError *error;\r\n    BOOL isConnect = [self.clientSocket connectToHost:@\"127.0.0.1\" onPort:5036 error:&error];\r\n    if (!isConnect) {\r\n        NSLog(@\"连接失败,:%@\",error);\r\n    }else{\r\n        NSLog(@\"连接成功\");\r\n        NSMutableDictionary *settings = [[NSMutableDictionary alloc] init];\r\n        \r\n        [settings setObject:[NSNumber numberWithBool:YES]\r\n                     forKey:GCDAsyncSocketManuallyEvaluateTrust];\r\n        \r\n        [self.clientSocket startTLS:settings];\r\n    }\r\n}\r\nwhen i call startTLS method,the delegate mehod :\r\n-(void)socket:(GCDAsyncSocket *)sock didReceiveTrust:(SecTrustRef)trust completionHandler:(void (^)(BOOL))completionHandler.\r\nit doesn't work too.\r\nAnd it will occur a error \"Error Domain=kCFStreamErrorDomainSSL Code=-9847 \"(null)\" UserInfo={NSLocalizedRecoverySuggestion=Error code definition can be found in Apple's SecureTransport.h}\".\r\nSo How can i solve this problem? if you can help me solve it,i will be thanking for you very much!"},"comment":{"url":"https://api.github.com/repos/robbiehanson/CocoaAsyncSocket/issues/comments/433063978","html_url":"https://github.com/robbiehanson/CocoaAsyncSocket/issues/661#issuecomment-433063978","issue_url":"https://api.github.com/repos/robbiehanson/CocoaAsyncSocket/issues/661","id":433063978,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzA2Mzk3OA==","user":{"login":"alisolutions","id":2880208,"node_id":"MDQ6VXNlcjI4ODAyMDg=","avatar_url":"https://avatars2.githubusercontent.com/u/2880208?v=4","gravatar_id":"","url":"https://api.github.com/users/alisolutions","html_url":"https://github.com/alisolutions","followers_url":"https://api.github.com/users/alisolutions/followers","following_url":"https://api.github.com/users/alisolutions/following{/other_user}","gists_url":"https://api.github.com/users/alisolutions/gists{/gist_id}","starred_url":"https://api.github.com/users/alisolutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alisolutions/subscriptions","organizations_url":"https://api.github.com/users/alisolutions/orgs","repos_url":"https://api.github.com/users/alisolutions/repos","events_url":"https://api.github.com/users/alisolutions/events{/privacy}","received_events_url":"https://api.github.com/users/alisolutions/received_events","type":"User","site_admin":false},"created_at":"2018-10-25T14:03:56Z","updated_at":"2018-10-25T14:03:56Z","author_association":"NONE","body":"We are also getting same issue, please help."}}
{"actor":{"display_login":"alisolutions"}}