ice4j icon indicating copy to clipboard operation
ice4j copied to clipboard

PseudoTcpSocket poor performance and errors

Open basinilya opened this issue 6 years ago • 0 comments

I'm trying to run instances of PseudoTcpSocket on top of a DatagramSocket and for some reason the performance is very poor. For example, the transmission speed between two UDP sockets on localhost is around 100kbytes/s.

Also, after I create more than one PseudoTcpSocket, the implementation begins spitting errors like "wrong conversation number, this: 0 remote: 1".

The test is attached. It creates one instance and pumps data one way, then after two seconds it starts pumping the opposite way in another thread, then it creates another instance with a different conversation id and does the same.

PseudoTest.zip

basinilya avatar Sep 15 '19 08:09 basinilya