Univention Bugzilla – Attachment 9544 Details for
Bug 47106
The umcp client can only answer one authentication request at a time
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Script to trigger the problem
test46870.py (text/plain), 658 bytes, created by
Sönke Schwardt-Krummrich
on 2018-05-30 16:51:20 CEST
(
hide
)
Description:
Script to trigger the problem
Filename:
MIME Type:
Creator:
Sönke Schwardt-Krummrich
Created:
2018-05-30 16:51:20 CEST
Size:
658 bytes
patch
obsolete
>#!/usr/bin/python ># >from univention.lib.umc import Client >import threading >import time >import random >import sys > >if __name__ == '__main__': > client = Client() > > running_threads = [] > > def try_auth(): > client.authenticate('Administrator', 'univention') > print ' .', > sys.stdout.flush() > > for i in xrange(500): > thread = threading.Thread(target=try_auth) > running_threads.append(thread) > thread.start() > time.sleep(random.random()*0.2) > > remaining = 1 > while remaining: > running_threads = [x for x in running_threads if x.is_alive()] > remaining = len(running_threads) > print '%d remaining' % (remaining,) > if not remaining: > break > time.sleep(1)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 47106
: 9544 |
10138