Saturday, June 4, 2011

Starting to implement

So, Gajim can basically send and request acks to a server. I haven't through fully tested it, but I will leave that for latter. Right now I'm focusing on resumption, which is harder because it changes the way Gajim connects to the server if it knows that resumption is accepted by the server.



For efficient acking the specification shows this example:


C: <enable/>
S: <enabled stanzas='5'/>
C: <message/>
C: <message/>
C: <message/>
C: <message/>
C: <message/>
C: <r/>
S: <a h='4'/>
C: <message/>
C: <message/>
C: <message/>
C: <message/>
C: <message/>
C: <r/>
S: <a h='9'/>



Which I find very weird that the server is the one who gets to set the interval in which the requests are sent. Since both, the sever and the client, can send and receive acks at any time, it doesn't makes sense that the server cares or has any say on how often the client sends acks.

So I made the judgment call to ignore this for now and let Gajim decide when it wants to send acks.

2 comments:

  1. The 'stanzas' attribute was removed from the latest revision (1.2) of XEP-0198. However, it seems it's accidentally still in the examples section. You should report this to standards@xmpp.org.

    ReplyDelete
  2. I saw it remove from 1.3rc2 not 1.2. http://mail.jabber.org/pipermail/standards/2011-June/024587.html

    Since it is a release candidate it will take time before we can see the changes.

    ReplyDelete