|
From: | Martin Egholm Nielsen |
Subject: | [Jessie-discuss] Handshake timeout - preventing DoS |
Date: | Thu, 10 Nov 2005 10:41:52 +0100 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.6) Gecko/20050319 |
Hi Casey,Trying to make my webserver (more) robust against DoS (Denial of Service), I've noticed that one can easily make Jessie "occupy" and block during handshaking. This can obviously be done by telnet'ing the server on the used port, and then just do anything with that telnet connection...
So in order to prevent this hanging there forever, flooding the server with open connections, it would be nice if was possible to set a timeout value for the handshake.
And now you say, why not just use "setSoTimeout()" from you application before reading anything from the socket. But that timeout value will then have influence on the rest of the "read"'ing that initiated the handshake...
// Martin
[Prev in Thread] | Current Thread | [Next in Thread] |