I’m thinking about heap fragmentation.
I’m using heap4.
I have to acquire from 1 to 5 files from a Server.
Currently, I’m shutting down each connection after a file is acquired (think HTTP 1.0). and closing the socket.
Since a TCP socket acquires multiple buffers from the heap, each time a file is processed, buffers are acquired and freed from the heap because the socket is being acquired and freed.
Can a task acquire a socket and then perform multiple connects and shutdowns on the socket without closing the socket?