hyphanet / pyFreenet

Python FCPv2 library and utilities
https://freenetproject.org/
Other
60 stars 24 forks source link

Poor capabilities for resuming jobs #17

Closed xloem closed 1 year ago

xloem commented 8 years ago

Just noting the difficulty accessing jobs from a previous run of the client.

I know the id of the job I am waiting for, so it would be reasonable to say node.jobs[id] = JobTicket(node, id, '', '') in advance, but I think this may create a race condition with the existing code.

ArneBab commented 8 years ago

hm, yes. I’ll have to check how freesitemgr checks for jobs from a previous run. It’s been a while since I looked at that part, so if you want to check it, feel free to prod the code (fcp/sitemgr.py).

ArneBab commented 1 year ago

Race conditions are pretty dangerous here (they can break an existing connection and then both connections die), so I would rather avoid that. Please re-open if this is still an issue.