mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Fix Node Fibers 100% CPU issue.
Thanks to kentonv ! Related wekan/wekan-mongodb#2, related meteor/meteor#9796
This commit is contained in:
parent
c12e003fd3
commit
e26a4824cf
3 changed files with 50 additions and 2 deletions
|
|
@ -1,5 +1,12 @@
|
|||
Meteor.startup(() => {
|
||||
|
||||
// Node Fibers 100% CPU usage issue
|
||||
// https://github.com/wekan/wekan-mongodb/issues/2#issuecomment-381453161
|
||||
// https://github.com/meteor/meteor/issues/9796#issuecomment-381676326
|
||||
// https://github.com/sandstorm-io/sandstorm/blob/0f1fec013fe7208ed0fd97eb88b31b77e3c61f42/shell/server/00-startup.js#L99-L129
|
||||
import Fiber from "fibers";
|
||||
Fiber.poolSize = 1e9;
|
||||
|
||||
Accounts.validateLoginAttempt(function (options) {
|
||||
const user = options.user || {};
|
||||
return !user.loginDisabled;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue