A graceful finish of --max-transfer would be nice. I just looked at the code and it is using errors to signal the finish… For a graceful restart, I could make it only signal the error if no bytes had been read - that would probably work. This would need another flag --graceful maybe.
What do you think - sound interesting? If you think so then please make a new issue on github and I’ll have a go!