Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Use {shutdown, Error} when terminating connection processes
Previously they exited `normal`, which helped avoid error log spam. However, that also meant any linked helper processes would not exit when the main connection process had been terminated. To automatically clean up any linked processes, and continue avoiding generating error logs, we can use `{shutdown, Error}` as the exit reason. That error, along with `shutdown` atom, are special exit reasons which are considered `normal` for proc_lib processes and will not generate error logs [1]. Another benefit is having more specific exit reasons (send error, recv error, etc.), which may help with debugging. [1] https://www.erlang.org/docs/24/man/proc_lib.html#description
- Loading branch information
Showing
5 changed files
with
40 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters