Giter Site home page Giter Site logo

mpush-client-oc's People

Contributors

fight0913 avatar ohun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mpush-client-oc's Issues

demo 无法连接

Hi 您好,mpush 的 oc 客户端 demo 点击连接后,请求超时,是服务器的问题吗?谢谢。

请问能否提供利用GCDAsyncSocket 建立https的长连接的相关code,多谢~

-(void)socket:(GCDAsyncSocket *)socket didConnectToHost:(NSString *)host port:(uint16_t)port{

NSMutableDictionary *settings = [[NSMutableDictionary alloc] init];

[settings setObject:[NSNumber numberWithBool:YES]
             forKey:GCDAsyncSocketManuallyEvaluateTrust];


[self.socket startTLS:settings];

}

在原有基础上增加上面代码,还是无法正常访问https server,

  • (void)socket:(GCDAsyncSocket *)sock didReceiveTrust:(SecTrustRef)trust completionHandler:(void (^)(BOOL))completionHandler
    这个回调方法不执行···
    多谢

应用启动的时候偶尔出现crash

捕获日志如下:

*************** 19-02-28 21:33:30 *******************
callStackSymbols - 当前栈信息:
0   CoreFoundation                      0x00000002290f7eb8 <redacted> + 252
1   libobjc.A.dylib                     0x00000002282c9a40 objc_exception_throw + 56
2   CoreFoundation                      0x0000000228ffe674 <redacted> + 0
3   Foundation                          0x0000000229ae33a4 <redacted> + 252
4   MonoEnglishParty                    0x0000000104d93434 -[RFIReader readData:] + 160
5   MonoEnglishParty                    0x0000000104d93560 -[RFIReader readData] + 76
6   MonoEnglishParty                    0x0000000104d1daac -[MPHandshakeOkMessage decodeWithBody:] + 176
7   MonoEnglishParty                    0x0000000104e46354 -[MPBaseMessage decodeBody] + 1040
8   MonoEnglishParty                    0x0000000104d1abac -[MPBaseMessageHandle handleWithPacket:] + 108
9   MonoEnglishParty                    0x0000000104d36948 __39-[MPMessageDispatcher onReceivePacket:]_block_invoke + 52
10  libdispatch.dylib                   0x0000000106903824 _dispatch_call_block_and_release + 24
11  libdispatch.dylib                   0x0000000106904dc8 _dispatch_client_callout + 16
12  libdispatch.dylib                   0x000000010690ce6c _dispatch_lane_serial_drain + 720
13  libdispatch.dylib                   0x000000010690db60 _dispatch_lane_invoke + 460
14  libdispatch.dylib                   0x0000000106917bfc _dispatch_workloop_worker_thread + 1220
15  libsystem_pthread.dylib             0x0000000228d140dc _pthread_wqthread + 312
16  libsystem_pthread.dylib             0x0000000228d16cec start_wqthread + 4

reason - 崩溃原因:
 *** -[NSConcreteMutableData subdataWithRange:]: range {2, 4294958267} exceeds data length 80
name - 异常类型:
 NSRangeException

qq20190228-213453 2x

不知道有木有遇到同样问题的小伙伴,希望指点一二

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.