Disable socket notifier on every write and re-enable it when the bytes
have been written so the socket isn't choked.
Reduce the write buffer to 2KiB since it doesn't make a difference to
have a big one for local files.