how to reject a new peer stream #3259
Unanswered
fofewyoung
asked this question in
Q&A
Replies: 3 comments 3 replies
-
You should explicitly shutdown (abort) the stream with an app-specific error code so the peer know why you did it. If you just call close, the stack defaults to error 0, which might not be what you want. |
Beta Was this translation helpful? Give feedback.
1 reply
-
In fact, I want to do this because I'm afraid that aggressive clients will create a large number of streams, which will cause the server memory to crash; So I want to limit the number of streams created |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
is it correct?
Beta Was this translation helpful? Give feedback.
All reactions