Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Mohamed3amer opened this issue Feb 13, 2014 · 7 comments
Closed

Comments

@Mohamed3amer
Copy link

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
Copy link
Contributor

jmesnil commented Feb 13, 2014

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

@Mohamed3amer
Copy link
Author

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

@Mohamed3amer
Copy link
Author

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
Copy link
Author

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

@jmesnil jmesnil closed this as completed Feb 18, 2014
@jbabu
Copy link

jbabu commented May 5, 2014

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
Copy link
Contributor

jmesnil commented May 5, 2014

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

@jbabu
Copy link

jbabu commented May 5, 2014

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants