Closed SugarD-x closed 2 years ago
This has been added, however it seems to be breaking some scripts. This needs further testing and research.
As mentioned here: https://github.com/mysqljs/mysql/issues/1081
JS/node.js don't handle connections the same way as other languages, (such as PHP), and require a different method for handling connection closures. Connection pooling may be required to resolve this, however implementing such in this design of a scripting system may prove complex, and is not yet fully understood in terms of how it could be done properly. Suggestions from others may be needed here.
This has been completed.
Connection ending/releasing/destroying needs to be researched and added to all database connections for security, memory usage, and performance reasons.