Other Parts Discussed in Thread: SYSBIOS
Using ndk_2_24_03_35 (this is also in ndk_2_24_00_11, not sure where else), but I believe the function "int SockShutdown( HANDLE h, int how )" in sock.c
needs to also flush the transmit buffer as well as the receive buffer:
/* Perform read flush */
if( ps->hSBRx )
SBFlush( ps->hSBRx, 1 );
/* Perform transmit flush (ADDED) */
if( ps->hSBTx )
SBFlush( ps->hSBTx, 1 );
If this is not done, the heap will grow every time a connection is shutdown.
I've added this and now my heap remains the same size from before and after a connection is created and then shutdown.
-Ed Francy