-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
"Socket closed by remote peer" - GCDAsyncSocket Error Code 7 #131
Comments
Quick update: I think the server might be closing the connection because of the idle period. I'll try using the XEP-0199 extension to ping at regular intervals. |
Generally when the server is closing the connection, you get this error/
On Mon, Jan 7, 2013 at 12:14 PM, Indragie Karunaratne <
|
Yep, the ping fixed it. Thank you. |
Did you experience the problem that after a write to socket I don't get a callback that connection disconnected even though my server disconnected it. |
That could be down to #119 if you are testing on iOS 6? |
please tell me how to fit it? |
How to solve this problem??? |
i fixed it by reduce the heart time(7 minute) |
Hello Gleeeli, can you please guide how you fixed this problem, I have tried the ping but still the same issue although the ping pong happening. This also hence making me loose some message while the reconnect is happening and missed stanza. since the server guy is informing that I am connecting to expired session not the resume way that is to be worked. |
我是将心跳时间从十分钟减到五分钟解决的(reduce the heart time from ten minutes to five minutes) Hello Gleeeli, can you please guide how you fixed this problem, I have tried the ping but still the same issue although the ping pong happening. This also hence making me loose some message while the reconnect is happening and missed stanza. since the server guy is informing that I am connecting to expired session not the resume way that is to be worked. — |
Please tell me details to fit it,thanks |
I want konw anyone solve this problem?? I have this problem now |
how to deal it I want to know |
sorry, i‘m not user xmpp when get this mistake。i get this mistake when i use GCDAsyncsocket。i solve this problem by reduce the heart time in five minute。 how to deal it I want to know — |
你可以加我QQ 295981743 how to deal it I want to know — |
11 |
this is how to enable it let autoPing = XMPPAutoPing()
autoPing.activate(xmppStream) |
Hello Everyone,
Getting this error in some random time after connected to server and also notice one thing is that it always come when network connection is "Mobile Data" Domain=GCDAsyncSocketErrorDomain Code=7 "Socket closed by remote peer" UserInfo={NSLocalizedDescription=Socket closed by remote peer} and already implemented Ping Manager in my code.
Please help. |
mqttDidDisconnect: Socket closed by remote peer ? what could be the problem? |
I am also getting the same error. How to get rid of this. |
There might be several problems related to that like changing connection speeds, switching from WiFi to wireless data. So use a combination of XEP-0199 and XEP-0184 |
In my case we are using 2 types of mqtt connections.
I got the same error when i try to use 1885 port numer. I have added below code in my existing code:
My complete code now: /```
|
After a period of inactivity, the stream disconnects with the following error:
The
XMPPReconnect
module reconnects to the server, but it goes into an infinite loop of periodically disconnecting (with the above error) and reconnecting, and even after reconnecting it doesn't receive any more data from the server until the stream is explicitly disconnected and connected again. I found some old discussion on this issue but wasn't sure if it was still relevant:https://groups.google.com/forum/#!msg/xmppframework/6RZY3fN73_w/nv8fEGgJiQUJ
Thanks.
The text was updated successfully, but these errors were encountered: