Subject: keep-alive ping
The KeepAliveTick shouldnt be sending a blank space, It should be sending a Ping-IQ. All other xmpp clients use xmpp-ping for their keep-alive and Servers that dont support xmpp-ping (xep-0199) are required by the standards to reply with service-unavailable stanza.
Change the KeepAliveTick in XmppConnection.cs from:
to:
Change the KeepAliveTick in XmppConnection.cs from:
private void KeepAliveTick(Object state)
{
// Send a Space for Keep Alive
Send(" ");
}
{
// Send a Space for Keep Alive
Send(" ");
}
to:
private void KeepAliveTick(Object state)
{
// Send a ping for Keep Alive
agsXMPP.protocol.extensions.ping.PingIq ping = new protocol.extensions.ping.PingIq();
ping.Type = protocol.client.IqType.get;
Send(ping);
}
{
// Send a ping for Keep Alive
agsXMPP.protocol.extensions.ping.PingIq ping = new protocol.extensions.ping.PingIq();
ping.Type = protocol.client.IqType.get;
Send(ping);
}
dmex
Show profile
Link to this post
