iIRC, if you set up ssh access and use ssh to push, while it is slower, it doesnt have the broken pipe problem.
Newer dulwich has corrected this i think. I have mostly integrated this into stash, but havent gotten around to getting everything working yet