jitsi/ice4j

PseudoTcpSocket poor performance and errors

basinilya opened this issue · 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