Describe the bug
When an HTTP type custom module script performs local.sendPOST calls in quick succession, it causes Chataigne to crash. The same behaviour is not observed when making the same HTTP POST request the native HTTP Module.
To Reproduce
Steps to reproduce the behavior:
Create a simple custom module with one Menu command
Define a default base address to a well-known API. For example: https://httpbin.org/post
Define a simple Menu item. No parameters are necessary
Write Javascript for the callback function. Make a sendPOST call to the base address configured
Start Chataigne and add the custom module
In the inspector panel, use command tester to invoke the command of the module
Enable logging for the module
Click Trigger button and observe any logs
Click on the Trigger button continuously in quick succession
Observe that eventually Chataigne stops responding
Expected behavior
Chataigne should not become unresponsive.
Environment
Describe the bug When an HTTP type custom module script performs
local.sendPOST
calls in quick succession, it causes Chataigne to crash. The same behaviour is not observed when making the same HTTP POST request the native HTTP Module.To Reproduce Steps to reproduce the behavior:
https://httpbin.org/post
Expected behavior Chataigne should not become unresponsive.