I assigned each connection a UInt8Array with 16 * 1024 * 1024 of "0" and repeated the test. Now the
I assigned each connection a UInt8Array with 16 * 1024 * 1024 of "0" and repeated the test. Now the max I get is 12 connections. So this confirms that this is memory related.

