do not use socket.sendall

`socket.sendall` is not compatible with non blocking connections. Use
`socket.send` instead and manually slice the data frame as needed.

I don't have a test case for it, because cannot think of any good way of reproducing the error.

Related to https://github.com/pika/pika/issues/481