ALII-4573 WIP Purge always returns

Signed-off-by: Mike Stitt <mikes@spindance.com>
Move the to_be_completed = 1 inside of TCP/IP task to avoid possible/rare race condition.

Signed-off-by: Mike Stitt <mikes@spindance.com>
Fix code review comment.

Signed-off-by: Mike Stitt <mikes@spindance.com>
netconn_delete always returns ERR_OK

Signed-off-by: Mike Stitt <mikes@spindance.com>
Merge  bug/4573CloseAlwaysReturns into bug/4573PurgeAlwaysReturns

Signed-off-by: Mike Stitt <mikes@spindance.com>
Merge pull request #3 from spindance/bug/4573PurgeAlwaysReturns

ALII-4573 WIP Purge always returns
Merge pull request #5 from spindance/bug/4573CloseAlwaysReturns

Bug/4573 close always returns