socket stream buffer updates
- sync before destroying the buffer object