hapijs / glue

Server composer for hapi.js
Other
245 stars 62 forks source link

how do you pass in concurrent option to hapi? #110

Closed kdong007 closed 6 years ago

kdong007 commented 6 years ago

https://github.com/hapijs/hapi/blob/master/API.md

server.options.load
Default value: { sampleInterval: 0, concurrent: 0 }.

but this is what I got [1] "concurrent" is not allowed

WesTyler commented 6 years ago

What version of hapi? What version of glue? What version of Node?

gilles-bertrand commented 6 years ago

I have the same error here is my package.json "dependencies": { "glue": "^5.0.0", "hapi": "^17.2.0", "joi": "^13.0.2" } This is the error i have : { ValidationError: Invalid load monitoring options { "sampleInterval": 0, "concurrent" [1]: 0 }

WesTyler commented 6 years ago

Okay, I just tracked this down. It was an issue with Heavy, being called inside of hapi.

Eran actually just patched this yesterday, and I've verified it works in hapi v17.2.0 .

hapi commit

Heavy commit

lock[bot] commented 4 years ago

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.