pymessenger icon indicating copy to clipboard operation
pymessenger copied to clipboard

pymessenger multi-threading

Open acondoriml opened this issue 9 years ago • 6 comments

[PYTHON - MESSENGER] Hi! How can I serve multiple clients using multi-threading? Thank you !

acondoriml avatar Aug 11 '16 18:08 acondoriml

Are you asking if this module is thread-safe?

drice avatar Aug 11 '16 19:08 drice

I think @acondoriml is referring to handling multiple connections at once. This might not be possible to do.

GoelBiju avatar Sep 19 '16 21:09 GoelBiju

@GoelBiju Yes, I want handling multiple connections at once, I try using gunircon, apache, flask, I set up several ways and just handing one connections at once, is a pain. I can´t understand why it doesn´t work

acondoriml avatar Oct 06 '16 04:10 acondoriml

Anyone has solution for this? Hi @acondoriml Did you manage to figure it out?

davidlowjw avatar Oct 21 '16 00:10 davidlowjw

@davidlowjw I can't find a solution, it's a shame because the library works great!

acondoriml avatar Nov 30 '16 13:11 acondoriml

If you use Flask with Gunicorn, uwgsi and set more than 1 worker you will have the number of workers to reply multiple clients. If you are using Flask without any upper layer like gunicorn,... you only are going to handle one request per time.

neoscott avatar Nov 30 '16 13:11 neoscott