Stack in case of large no. of concurrent connections #57
Answered
by
matt-42
shivshankardayal
asked this question in
Q&A
-
As far as I understand Lithium is based on co-routines so how does stack behave if there is large no. of concurrent connections. It is assumed that each co-routines allocate some data on stack. |
Beta Was this translation helpful? Give feedback.
Answered by
matt-42
Mar 1, 2021
Replies: 1 comment 1 reply
-
Hi @shivshankardayal , There is currently no check on the number of connections. I have to add a check to avoid crashing the server is your spam it with new connections requests. However they won't be any stack overflow in case of too many connections since the context on each connection is allocated on the heap. So you can a heap overflow yes. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
matt-42
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @shivshankardayal ,
There is currently no check on the number of connections. I have to add a check to avoid crashing the server is your spam it with new connections requests. However they won't be any stack overflow in case of too many connections since the context on each connection is allocated on the heap. So you can a heap overflow yes.