##// END OF EJS Templates
lfs: fix blob corruption when tranferring with workers on posix...
Matt Harbison -
r50438:abf47186 stable
parent child Browse files
Show More
@@ -599,6 +599,19 b' class _gitlfsremote:'
599
599
600 # Until https multiplexing gets sorted out
600 # Until https multiplexing gets sorted out
601 if self.ui.configbool(b'experimental', b'lfs.worker-enable'):
601 if self.ui.configbool(b'experimental', b'lfs.worker-enable'):
602 # The POSIX workers are forks of this process, so before spinning
603 # them up, close all pooled connections. Otherwise, there's no way
604 # to coordinate between them about who is using what, and the
605 # transfers will get corrupted.
606 #
607 # TODO: add a function to keepalive.ConnectionManager to mark all
608 # ready connections as in use, and roll that back after the fork?
609 # That would allow the existing pool of connections in this process
610 # to be preserved.
611 if not pycompat.iswindows:
612 for h in self.urlopener.handlers:
613 getattr(h, "close_all", lambda: None)()
614
602 oids = worker.worker(
615 oids = worker.worker(
603 self.ui,
616 self.ui,
604 0.1,
617 0.1,
General Comments 0
You need to be logged in to leave comments. Login now