do signal handling in send()
replace bytes::length() by length()
Merge pull request #4 from ikruglov/master

do signal handling in send()