Re: [jetty-users] Connection Manager

2022-10-12 Thread Dung Nguyen
Thanks! That's what i needed! Vào Th 5, 13 thg 10, 2022 vào lúc 10:45 Lachlan Roberts < lach...@webtide.com> đã viết: > ConnectionStatistics will allow you to get stats on Connections, but > doesn't keep a list of them. > >

Re: [jetty-users] Connection Manager

2022-10-12 Thread Lachlan Roberts
ConnectionStatistics will allow you to get stats on Connections, but doesn't keep a list of them. https://www.eclipse.org/jetty/javadoc/jetty-10/org/eclipse/jetty/io/ConnectionStatistics.html Or you could implement your own Connection.Listener. On Thu, Oct 13, 2022 at 12:45 PM Dung Nguyen

Re: [jetty-users] Connection Manager

2022-10-12 Thread Dung Nguyen
Thanks for that information, any idea how to list all connections (and count them)? Vào Th 4, 12 thg 10, 2022 vào lúc 10:50 Lachlan Roberts < lach...@webtide.com> đã viết: > You should be able to use sendError(-1) which will immediately abort the > HttpChannel and close the connection/stream.

Re: [jetty-users] Connection Manager

2022-10-11 Thread Lachlan Roberts
You should be able to use sendError(-1) which will immediately abort the HttpChannel and close the connection/stream. see https://www.eclipse.org/jetty/javadoc/jetty-10/org/eclipse/jetty/server/Response.html#sendError(int,java.lang.String) On Wed, Oct 12, 2022 at 12:13 PM Dung Nguyen wrote: >

Re: [jetty-users] Connection Manager

2022-10-11 Thread Dung Nguyen
Connection : close doesn't solve the problem. Vào Th 4, 12 thg 10, 2022 vào lúc 05:00 Greg Wilkins đã viết: > > > On Wed, 12 Oct 2022 at 05:13, Simone Bordet wrote: > >> For other protocols such as HTTP/2 or HTTP/3, adding the `Connection: >> close` header will have no effect. >> > >

Re: [jetty-users] Connection Manager

2022-10-11 Thread Greg Wilkins
On Wed, 12 Oct 2022 at 05:13, Simone Bordet wrote: > For other protocols such as HTTP/2 or HTTP/3, adding the `Connection: > close` header will have no effect. > Thinking out loud here... Whilst there is no requirement to close a HTTP/2 or HTTP/3 connection when a "Connection: close" header is

Re: [jetty-users] Connection Manager

2022-10-11 Thread Simone Bordet
Hi, On Mon, Oct 10, 2022 at 12:02 PM Dung Nguyen wrote: > > Hi! > > I use jetty for my server. I just wonder if there is a way to manage (get > count , list connection, force disconnect) connection ? > > For example : i want verify client before it connect and then disconnect a > client if the

[jetty-users] Connection Manager

2022-10-10 Thread Dung Nguyen
Hi! I use jetty for my server. I just wonder if there is a way to manage (get count , list connection, force disconnect) connection ? For example : i want verify client before it connect and then disconnect a client if the authentication failed, how to do that ? my code like this : server =