svn co http://svn.apache.org/repos/asf/tomcat/trunk



On 02/25/2010 01:48 PM, Filip Hanik - Dev Lists wrote:
On 02/25/2010 01:26 PM, Christopher Schultz wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

James,

On 2/25/2010 12:47 AM, James Roper wrote:
Is there anyone on this list with a detailed knowledge of the NIO
Connector?
In spite of his terse reply, Filip is, I believe, quite familiar with
that code. Would you consider writing a patch and submitting it? The
best thing to do it start out by filing a bugzilla enhancement request.
That's the place to attach any patches you might develop. Enhancement
requests with accompanying patches are accepted for inclusion much
faster than those without patches :)
I started working on this in trunk, so yes, get setup for trunk

svn co http://svn.apache.org/repos/asf/trunk
cd trunk
ant

it also has the files for eclipse in there, you may have to add some stuff to the classpath

it's all handled in NioEndpoint, and I've started by adding a
getKeyCount()
to every poller,

the only thing remaining is

1. When a poller wakes up due to a timeout, get a key count (don't do it on an actual even as that will cause performance issues)
2. In the acceptor thread, check all pollers and sum up the key counts
3. decide what to do. You can't simply close connections, but you can sleep, and let the backlog pile up for a bit
   or implement some kind of barrier, but this is a bit tricky too

best
Filip


Sounds like maybe there's a task to be done in providing limits on
the NIO pools/queues.  I wonder how hard it is to get a tomcat dev
environment setup...
Last time I tried, it wasn't too bad. Just be aware that sometimes the
build environment has to be specific even if the runtime environment
isn't (that is, TC6 may require Java 6 to build, but only Java 5 to
run). Check the docs for more information.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkuG3RAACgkQ9CaO5/Lv0PA72ACghFcr0w7BPB0vZxqZszA5tEFu
DDAAniC0dQYjsp7JcS8CXZAVbWZBshV2
=JtsS
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to