socket tx bugfix

+ unittest that catches it