helium / erlang-libp2p

An Erlang implementation of libp2p swarms
https://helium.github.io/erlang-libp2p
Apache License 2.0
121 stars 34 forks source link

Mj/die with a quickness #394

Open michaeldjeffrey opened 3 years ago

michaeldjeffrey commented 3 years ago

waiting infinity for sessions to close was causing the swarm_server to never fully die when it was terminated. Why it's own 10s timeout in libp2p_swarm_sup did not come along and brutally kill the process is still a mystery to me.

The supervisor is a one_for_all, if anything is going down, it's taking all the sessions with it already. We'll still log to know what is killing the server.