Changes to TCP side

- Avoid a potential segfault
- Change streaming protocol
- Set TCP no-delay option