mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
a2ce732706
Calling wrapfunction on the remotefilepeer(sshpeer) object in exchangepull function introduces a reference cycle. Hence, this object will not be deleted until the process dies. This is not a big issue for processes having a short lifetime(e.g. lauched by command line.) However, for persistent processes (e.g. TortoiseHg), this can lead to multiple lingering ssh connections to the server(actually one by pull operation). The fix is to not wrap the remotefilepeer._callstream. This method is defined right into the remotefilepeer object. The required repo data is made available in the remotefilepeer object by monkeypatching this object in the exchangepull function. |
||
---|---|---|
.. | ||
__init__.py | ||
basepack.py | ||
basestore.py | ||
cacheclient.py | ||
constants.py | ||
contentstore.py | ||
datapack.py | ||
debugcommands.py | ||
fileserverclient.py | ||
historypack.py | ||
metadatastore.py | ||
remotefilectx.py | ||
remotefilelog.py | ||
remotefilelogserver.py | ||
repack.py | ||
shallowbundle.py | ||
shallowrepo.py | ||
shallowstore.py | ||
shallowutil.py | ||
shallowverifier.py |