users@grizzly.java.net

Re: Quickest way to kill a connection

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Thu, 29 Nov 2007 12:39:41 -0500

Alan Williamson wrote:
>> Just to make sure I get it correctly, can you tell me what you are
>> doing exactly? Is the bytes a well formed request or just junk?
>> Setting it to 5 is quite low and will break normal request processing
>> under load in case the OS buffers are full.
>
> i am sending it junk.

OK can you try the following. Download the following jars:

http://weblogs.java.net/blog/jfarcand/archive/DosTest.zip

This is the Grizzly WebServer. I've set the default timeout to 5000. I
start the server with:

java -jar http-1.6-SNAPSHOT.jar 8080 /var/www/

Then I'm doing:


> [ja120114_at_localhost grizzly]$ telnet localhost 8080
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> aaaa
> aaaa

The 5000 seems to work. Could it be an issue with your implementation?

Thanks

-- Jeanfrancois


>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>