Socket connections requires set context.callbackWaitsForEmptyEventLoop to false #426
Open
Description
Describe the bug
When my code leaves one open connection (ie: with some DBs), AWS Lambda throws timeout, even after my function run.
To Reproduce
Make any code that uses socket connections (ie: MySQL, Mongodb...);
Resolves function with some value;
And leaves that connection open for the next lambda function call.
Expected behavior
Since using promise to resolve function without laconia doesn't trows timeout.
I would expect the same with it.
Actual behavior
AWS Lambda throws timeout, even after my function resolves.
Additional context
Correct behavior (#48) would break laconia/batch and maybe others user cases
#415 aimed to solve this without contract breaks