Hello Nandan,
Please follow the example attached to see how my application handles sending TCP packets to the server. I ran this application for the past 5 minutes against an echo server and the application didn't run out of packet pool. You need to make sure that your application is not listening on a TCP socket at the same time, because if you're receiving data and not processing it, you will run out at some point (especially when you're sending the data to the echo server).
Here's the example: (Please visit the site to view this file)
Regards