Tcp write after connect

Should address #1432
After removing these q and req are unused.