roost-im / roost

An experimental new Zephyr client
MIT License
4 stars 2 forks source link

Store ZUnique_id_t in database for dedup? Or serialize buffer. #38

Open davidben opened 11 years ago

davidben commented 11 years ago

Related to #37, we should persist some kind of ZUnique_id_t buffer across restarts so we don't get ourselves caught between a retransmit silly across restarts. Or just stuff it in the database... it doesn't have to mean a new database query per message because we can suck up the last however many on startup and rely on libzephyr's internal one from there.

It's not super-likely, except in the face of broken cross-realm zephyrds. Can work around it by just dropping garbage packets, but this would be prudent nonetheless.

Also the ZUnique_id_t's are probably handy anyway for correlating outgoing and incoming messages.