Skip to content

Commit 477a2b1

Browse files
author
rcorniere
committed
Changelog and doc
1 parent 7a932d0 commit 477a2b1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
- Added message queue : when using "SendX" methods on a client, messages are also stored in a queue. When requesting
99
acks from the server, sent messages will be discarded, and unsent ones will be sent again. (see https://xmpp.org/extensions/xep-0198.html#acking)
1010
- Added support for stanza_errors (see https://xmpp.org/rfcs/rfc3920.html#def C.2. Stream error namespace and https://xmpp.org/rfcs/rfc6120.html#schemas-streamerror)
11+
- Added separate hooks for connection and reconnection on the client. One can now specify different actions to get triggered on client connect
12+
and reconnect, at client init time.
1113
- Client state update is now thread safe
1214
- Changed the Config struct to use pointer semantics
1315
- Tests

router.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ func (r *Router) route(s Sender, p stanza.Packet) {
8181
}
8282
}
8383

84+
// SendMissingStz sends all stanzas that did not reach the server, according to the response to an ack request (see XEP-0198, acks)
8485
func SendMissingStz(lastSent int, s Sender, uaq *stanza.UnAckQueue) error {
8586
uaq.RWMutex.Lock()
8687
if len(uaq.Uslice) <= 0 {
@@ -100,7 +101,7 @@ func SendMissingStz(lastSent int, s Sender, uaq *stanza.UnAckQueue) error {
100101
}
101102

102103
}
103-
// Ask for updates on stanzas we just sent to the entity
104+
// Ask for updates on stanzas we just sent to the entity. Not sure I should leave this. Maybe let users call ack again by themselves ?
104105
s.Send(stanza.SMRequest{})
105106
}
106107
uaq.RWMutex.Unlock()

0 commit comments

Comments
 (0)