You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Christopher Schultz <ch...@christopherschultz.net> on 2015/02/19 20:43:13 UTC

Is NIO2 ready for prime-time?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

All,

I've been using both BIO and NIO connectors for quite some time, now.
A few years back, Mark Thomas suggested that the NIO connector was
solid enough and offered significant advantages over the BIO connector
which is definitely true.

The only thing about the NIO connector is that it's a bit wasteful for
blocking reads because the blocking is "simulated" since all reads are
in fact non-blocking. The "simulated" blocking comes from issuing a
non-blocking read request and waiting for the data to come back, which
introduces a bit of overhead not encountered with the BIO connector.

The recently-added NIO2 connector solves this problem by using genuine
blocking reads and writes for the request and response body.

Is anyone using the NIO2 connector in any significant use case? If so,
what are your experiences?

Thanks,
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJU5jzRAAoJEBzwKT+lPKRYDqcQAKKZq28e3Kf6OUeJGOjpSLzI
G128fE8HzshD3HjNIe3gmkXR4oRdAHAyQ7z1n8u2ChUN76crXpoVsucEh9ialxxM
ZtaOXYQZMkE0QAKqcUvgPezw2YlA+Gcy3QrL/H8C8e2gwKeHaSMCUgwDBMXY4oxK
/wsM9/tMnQ3C6duN+GIzHq+POaoHvIw74wSLFX2XT9V00OCo4t826ChSrPdX2BKu
c9l1AlNSbDTFWj/iOVmPN8b1a5Qdp+Hm+9DSsyaodr3wSfmUKMmGIuBMJ0HlQgYf
rLFUT8hgvBy3mn55hoiTCdgesn92p5Vif4QZl+szC28FtxCEjUW8If2Oe8z3UJIR
cjAjFv4UPpM2feR0z6tIaZmmzH1fUnK84Zy/yb2/5tVJ8SkREaT0tIQSIv3GBiVf
333TI9681u3hIg2drPMD0wWZWw+jaxrKVkRyCHfkLfgcAciGxMlZJCvRNyQfqm16
G1qB4EfnPvrwph5HzZG5JTdVvJgdTnd+Z60mKCYmJj1aixLzJge7phToeGdRMA8c
CCAVXCGzkPAPbiLUgmuoDDwrQ8uKNJW2j7Oi0xbLCjKrygNiIrGWwnJAetUvKY8v
sALwGhD59WzUrTwWyZPEFUe/8LwphT/mCVjORMx2yRUo4OaMy//iuCIuEnFqdmr0
jkdgeAJ6Xmp1jJxdxxCl
=OatJ
-----END PGP SIGNATURE-----

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