senecajs / seneca

A microservices toolkit for Node.js.
http://senecajs.org
MIT License
3.95k stars 314 forks source link

why there is Hard limit on timeout #932

Open rsharma-prismhr opened 7 months ago

rsharma-prismhr commented 7 months ago

https://github.com/senecajs/seneca/blob/5c7e72258cfe49e91653a17186c7aad60e56f82e/seneca.ts#L56 Why there is a hard limit of 22 seconds here?

Can this be increased or configured?

lilsweetcaligula commented 5 months ago

Hi @rsharma-prismhr, if you want to configure the timeout in Seneca, try passing the timeout option to the Seneca constructor:

const seneca = Seneca({ timeout: 10e3 })

For reference: https://github.com/senecajs/seneca/blob/5c7e72258cfe49e91653a17186c7aad60e56f82e/test/timeout.test.js#L17