Don't call maybe_flush_socket() quite so often.