You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason that this happened is "os.getpid()" returns the same number while multithreading.
os.getpid() returns different number while multiprocessing.
the way to solve this is replace "my_ID = os.getpid() & 0xFFFF" by "my_ID = threading.current_thread().ident & 0xFFFF"(py3) in do_one() function.
make a flag in the header packet and then received data by select.select, we can judge the data whether it's the right one.
The text was updated successfully, but these errors were encountered: