You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The logs are being sent to fluentd using the above mentioned approach.
The end() function is called at the end of lambda execution to close the socket connections.
However, the end() function when deployed through a lambda, causes it to timeout due to every callback not being processed in the said invocation.
After looking into the issue further, we found that although the sockets are getting closed, the listener port is still active even after sender.end() function call. This might be a reason for the addHandlers() callback to not get processed, and thus causing a timeout.
Unless and until all callbacks are not processed in a particular invocation, the lambda does not exit successfully, thus causing a timeout when I use this library.
The lambda timeout threshold is set to 180 seconds ~ 3 minutes.
Thus, is there any way to handle the above scenario?
I read through issues #91 and #89, but the solutions to those are not working in my case.
It would be great if you could help.
The text was updated successfully, but these errors were encountered:
Shantanu35
changed the title
Lambda timeout occurs when using the sender.end() function with timeout
Lambda timeout occurs when using the sender.end() function with setTimeout
Jun 22, 2020
Hi,
We are using the library for sending logs to Fluentd via Bunyan Logger.
end()
function is called at the end of lambda execution to close the socket connections.end()
function when deployed through a lambda, causes it to timeout due to every callback not being processed in the said invocation.sender.end()
function call. This might be a reason for theaddHandlers()
callback to not get processed, and thus causing a timeout.Thus, is there any way to handle the above scenario?
I read through issues #91 and #89, but the solutions to those are not working in my case.
It would be great if you could help.
The text was updated successfully, but these errors were encountered: