TCPDataListener Delayed Acknowledgment Problem

Hello I am using TCPListener class to listen on a port using this code snippet.

The problem I am getting with this code is that it cannot handle more than 40 files in a minute. If we use client to send more than 40 files, the acknowledgements are delayed and the whole process gets delayed and a long queue is built, waiting for messages to be sent and acknowledged. Is there any way to increase the speed of this whole process? Is there a way to have one listener listen on multiple processes/ threads? Can we handle say 100-200 files a minute somehow?

submitted by /u/WajahatAliAbid
[link] [comments]

Leave a Reply