What should you do with channels when creating them?

37 views Asked by At

When creating with HttpServer#doOnChannelInit, it turned out that with each initial request a Channel is created once and I don’t understand what it is based on. Let me give you an example: Each time you visit the site, if the user is registered, a session is automatically created, respectively, this is one Channel, and all Http requests create a Channel. So, I had a question, on what basis are channels created one-time, whether they should be given automatic closing, and whether it would be better for each user who is currently using the web application to implement something like Map<User, Channel> which stores user channels through which all user requests will pass?

0

There are 0 answers