Closed AymenLoukil closed 9 months ago
This issue has been marked stale because it has not seen any activity within three months. If you believe this to be an error, please contact one of the code owners. This issue will be closed within 15 days of being stale.
This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners.
Describe the bug When using this extension with MongoDB Atlas, the number of connections peak and reaches 500. To Reproduce Steps to reproduce the behavior: 1-Here is the configuration used on Loopback:
this.bind(RateLimitSecurityBindings.CONFIG).to({ name: 'MongoDbDataSource', type: 'MongoStore', uri: db_url, collectionName: 'expressRateRecords', windowMs: 60 * 60 * 1000, max: 42, standardHeaders: true, // Return rate limit info in the
RateLimit-headers legacyHeaders: false, // Disable the
X-RateLimit-headers });
@ratelimit(false)
the problem is solved and the number of connections is kept at 7! Expected behavior MongoDB connections shouldn't peak. ScreenshotsWhat should I do to fix this? Thanks