mobile-web-messaging / StompKit

STOMP Objective-C Client for iOS
Apache License 2.0
95 stars 82 forks source link

GCDAsyncSocketErrorDomain Code=7 "Socket closed by remote peer" #12

Closed Mohamed3amer closed 10 years ago

Mohamed3amer commented 10 years ago

I am using StompKit on iOS7. After the connection done to AMQ , it disconnected and got this error:

Domain=GCDAsyncSocketErrorDomain Code=7 "Socket closed by remote peer" UserInfo=0x982b580 {NSLocalizedDescription=Socket closed by remote peer}

jmesnil commented 10 years ago

What's AMQ? ActiveMQ? Which version are you using? The socket was closed on the broker side. Do you have any logs there?

Mohamed3amer commented 10 years ago

Yes, ActiveMQ and the version is 5.3.2 ActiveMQ logs doesn't contain any errors and run normally

Mohamed3amer commented 10 years ago

by debugging i found that frame.headers[kHeaderHeartBeat] value is nil and it prints NSScanner: nil string argument in this line [self setupHeartBeatWithClient:self.clientHeartBeat server:frame.headers[kHeaderHeartBeat]];

Mohamed3amer commented 10 years ago

Thanks its solved .. KHeaderHeartBeat not the same in ActiveMQ response

jbabu commented 10 years ago

i m using simpeHTTPClient i am new to use socket programming. and how to configure ip address. Please help me. socketDidDisconnect:withError: "Error Domain=GCDAsyncSocketErrorDomain Code=8 "Error creating CFStreams" UserInfo=0x8d83710 {NSLocalizedDescription=Error creating CFStreams}"

jmesnil commented 10 years ago

@jbabu this issue was closed months ago and your error is not related

jbabu commented 10 years ago

@jmenil can u give me some details....how to communicate over two device ...can u suggestion me server side API for .net....actually some confusion is going in my mind...i want to some detail...about communication IP address to IP