-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Describe the bug
Middleware chain timeout which is a new feature in Axon has some bugs for responding to user and blocking the chain.
Axon v0.11.0
To Reproduce
route with this settings:
middleware(sampleMiddleware.helloWorld, 100, true);tested middlewares:
const helloWorld: Middleware = async (req, res, next) => {
for (let i = 0; i < 1000000; i++) {
console.log("middleware: Hello, World!");
}
}
const helloWorld: Middleware = async (req, res, next) => {
for (let i = 0; i < 1000000; i++) {
console.log("middleware: Hello, World!");
}
next();
}
const helloWorld: Middleware = async (req, res, next) => {
next();
for (let i = 0; i < 1000000; i++) {
console.log("middleware: Hello, World!");
}
}Screenshots
Metadata
Metadata
Assignees
Labels
Bug 🪲Something isn't workingSomething isn't working
Type
Projects
Status
Ready



