Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear all open interval and resolve callback error #15

Merged
merged 1 commit into from Aug 22, 2017

Conversation

@Shwetajain148
Copy link

@Shwetajain148 Shwetajain148 commented Aug 16, 2017

@mchaudhary @mostlyjason, I looked at the PR #14 and used the clearInterval() in our library to clear open interval for sendBufferdLogstoLoggly() function but using clearInterval() function only for buffer function did not help to overcome the callback issue. I used the clearInterval() function for both sendBulkLogs() and sendBufferdLogstoLoggly() functions then the callback error was removed. I ran the application continue for 30 minutes but the error did not occur. Before it was occurring in less than a minute.

I tested in below scenarios:

In both Bulk and Input mode with below conditions-

(a) Sending a single event (Worked Fine)
(b) Sending events in a loop (Worked Fine)
(c) Sending events continuous in a loop at a specific interval (Worked Fine)

In Network Outage case. (Worked Fine)

This PR will resolve the issue loggly/winston-loggly-bulk#13

Please review.

@mchaudhary mchaudhary merged commit f62eadf into loggly:master Aug 22, 2017
@Shwetajain148 Shwetajain148 deleted the Shwetajain148:resolve-callback-error branch Jan 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.