Reduce dispatch when writing data to a socket.
Merge pull request #754 from waywardmonkeys/network-dispatch-reductions

Reduce dispatch when writing data to a socket.