Two gen_server-s should never gen_server:call each other:
- gen_server A calls gen_server B: it sends request message and blocks on receive.
- gen_server B calls gen_server A: it sends request message and blocks on receive.
- Neither A nor B can respond each others requests, rendering a deadlock.
Комментариев нет:
Отправить комментарий