Tcp write after connect

Should address #1432
USe MAVE_VALGRIND_HAPPY.