877 fix tcp overflow

The test I've added fails before the change and passes after. The issue was that converting HttpData to Tcp.Write commands was not tail recursive.