« Return to Thread: Manage connection

Manage connection

by Liang Xiao Zhu :: Rate this Message:

Reply to Author | View in Thread

Hi everyone!

I am wondering, how can i manage connection? What I want to do is
simplely filter connections, such as when I have 50 request I want the
follow connections will be refused. I am using a NIO protocol for to do
that, in fact, I am looking at a Http11NioProcessor.java and
Http11NioProtocol.java, and I can capture the request, but I dont know
how I can refuse the request. I mean, how I can build a response when
the user with request 51 will be refused.

Thanks in advance!!!

Regards

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...

 « Return to Thread: Manage connection

LightInTheBox - Buy quality products at wholesale price