fix write error on large chunks
Set conn.send to blocking mode: "In non-blocking mode,
if a recv() call doesn’t find any data, or if a send() call
can’t immediately dispose of the data, a error exception is raised"
(https://docs.python.org/2.7/library/socket.html#socket.socket.setblocking)