Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors during simultaneous connections #34

Closed
pkarbovn opened this issue Jan 19, 2020 · 2 comments
Closed

Errors during simultaneous connections #34

pkarbovn opened this issue Jan 19, 2020 · 2 comments
Labels
Milestone

Comments

@pkarbovn
Copy link

Situation:
Need to put single file into multiple accounts using webdav.

Implementation:
Connecting to accounts using threads (3-4). Each thread create client = Client(options)
and running small download to test connections. There are many clients so each
thread is doing same operation but for different client (limit on 3-4 threads not saturate network link.)

Problem:
CopyThread::__copy_file [Thread-2]!(['Test_Client01_2020-01.zip'])
CopyThread::__copy_file [Thread-1]!(['Test_Client02_2020-01.zip'])
CopyThread::__copy_file [Thread-3]!(['Test_Client05_2020-01.zip'])
CopyThread::__copy_file [Thread-1]!(['Test_Client03_2020-01.zip'])
CopyThread::__copy_file [Thread-2]!(['Test_Client04_2020-01.zip'])
except CopyThread::__process_package [Thread-2]! Remote resource: / not found
CopyThread::__copy_file [Thread-3]!(['Test_Client07_2020-01.zip'])
CopyThread::__copy_file [Thread-1]!(['Test_Client08_2020-01.zip'])
except CopyThread::__process_package [Thread-1]! Remote resource: / not found
.......

My quick solution:
Move {root, session, timeout verify} from static class Client variables into local object variables
so they in init function {self.root, self.session, self.timeout, self.verify}
This seems to solve my problem.

@ezhov-evgeny
Copy link
Owner

@pkarbovn I'm planning to fix as soon as possible, I guess it will be done at the end of January

ezhov-evgeny added a commit that referenced this issue Jan 27, 2020
ezhov-evgeny added a commit that referenced this issue Jan 27, 2020
@ezhov-evgeny
Copy link
Owner

@pkarbovn Just released 3.14 try this version

@ezhov-evgeny ezhov-evgeny added this to the 3.14 milestone Feb 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants