# Create connection to the hub.
self.transport = transport.PakfireHubTransport(self.config)
- self.transport.fork()
# Send our profile to the hub.
self.send_builder_info()
# Create connection to the hub.
self.transport = transport.PakfireHubTransport(self.config)
- self.transport.fork()
while self.__running:
# Try to get a new build job.
URLGrabber.__init__(self, *args, **kwargs)
- def fork(self):
- """
- Reset Curl object after forking a process.
- """
- # XXX this is a very ugly hack and fiddles around with the internals
- # or urlgrabber. We should not touch these, but apparently nobody
- # else uses multiple threads or processes to talk to their servers.
- # So we simply replace Curl with a new instance without closing
- # the old one. This should be fixed in urlgrabber and/or pycurl.
- urlgrabber.grabber._curl_cache = pycurl.Curl()
-
def check_offline_mode(self):
offline = self.config.get("downloader", "offline")
if not offline: