Getting more and more deadlocks using scripts

Hello everyone,
I have a JavaScript script based on smtpJs that I use to send emails to several addresses (around 20). Recently, I got more and more feedback about people not receiving this emails…
While performing some tests to (unsuccessfully) understand and correct this problem, I got this error several times :

Transaction (Process ID 52) was deadlocked on lock | communication buffer resources with another process and has been chosen as the deadlock victim. Rerun the transaction.

The JavaScript console also displays few times socket is disconnect. (app.js l.379) and socket is reconnected (app.js l.390).

This never happened before, do you have any ideas about what can cause these deadlocks and how to avoid them ?
Thanks !

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.