opendoor-labs / rets

RETS Python 3 Client
MIT License
89 stars 43 forks source link

Client connection doesn't work with multiprocessing. #29

Closed vitriol closed 6 years ago

vitriol commented 6 years ago

Maybe I'm doing something wrong, but let's assume following scenario

I create a client connection in main thread and make an initial large query. Then I create a pool of workers to fetch the rest of the RLS classes for each of the results in the initial query. Trying to query within the worker now throws an unauthenticated error. Solution so far is to create a new connection within every worker, but that seems unreliable after a while of running.

Any thoughts?