Skip to content
Snippets Groups Projects
Commit 0eb72e4f authored by Sébastien Blin's avatar Sébastien Blin Committed by Adrien Béraud
Browse files

connectivity: enhance shutdown handling and first packets

This patch embeds multiple litte fixes detected while working on swarms:
+ When stopping an account, shutdownConnections() should be done
before dht->join() to avoid any lock (because some io::run() are done).
+ Also, some channel were not awoken when clearing sockets.
+ channelDatas_ must be locked while accessed
+ setOnRecv() can be done after first packets on channel, so to avoid
to miss first packets, re-inject current stored datas.

Change-Id: I1d1335b5b6873b281c5357d18121a4bb525646f8
parent af46a372
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment