Checking network input processing by Python for a multi-threaded server
Markus.Elfring at web.de
Wed May 1 09:25:44 EDT 2019
I have constructed a pair of small scripts for another test.
A command (which refers to the second Python script) is executed 100 times
by “subprocess.run()” with parameters so that the child process can send six
test records back to the caller over a TCP connection.
1. The received records are appended to a global list variable during
each loop iteration.
2. The list length is appended to another global list variable.
3. The stored list lengths are counted by grouping of this information.
Now I wonder again about a test result like the following for
the software “Python 3.7.2-3.1” (for an openSUSE system).
elfring at Sonne:~/Projekte/Python> time /usr/bin/python3 test-statistic-server1.py
incidence|"available records"|"return code"|"command output"
Does this data processing approach indicate a need for further software corrections?
More information about the Python-list