ail/python-list/2007-March/429172.html
Does anyone have suggestions as to a suitable workaround for this issue?
I was looking at the Twisted library, which seems possible but
significantly more complex.
Thanks,
Alex Jurkiewicz
--
http://mail.python.org/mailman/listinfo/python-list
Diez B. Roggisch wrote:
Without more code, it's impossible to tell if there is anything
peculiar in your usage of the lib. Maybe you close your connections to
fast to see several open?
Here's the relevant stuff from my (python2.6) code:
CONCURRENCY = 3
def threadProcessRecipient():
# Eac
Gabriel Genellina wrote:
Try logging the start/stop of your threads. It may be that your
threads stop before you think. The above code works correctly only if
you fill the queue before starting any thread - because as soon as a
thread sees the queue empty, it finishes.
You could use the sample
Piet van Oostrum wrote:
AJ> if __name__ == '__main__':
AJ>THREADS = []
AJ>for i in range(CONCURRENCY):
AJ>THREADS.append(threading.Thread(target=threadProcessRecipient))
AJ>for thread in THREADS:
AJ>thread.run()
You should use thread.start(), not thread.run(). W