Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multithreading #16

Closed
senyai opened this issue Nov 12, 2010 · 2 comments
Closed

Multithreading #16

senyai opened this issue Nov 12, 2010 · 2 comments

Comments

@senyai
Copy link

senyai commented Nov 12, 2010

When I load my server with ~100 req/sec I see wrong callbacks called in 'self._request_queue.popleft().callback(reply)'. It's a multithreading script. I've spent one week trying to fix it with no success. Any suggestions?

Update:
Ooops, win32com threads was not working as I expected, sorry for wrong issue.

@rlotun
Copy link
Collaborator

rlotun commented Jan 12, 2011

Twisted doesn't usually play well with threads (it's designed to be used in single threaded scenarios).

As a general hint, make sure you use reactor.callFromThread when making twisted calls from other threads. Of course, without seeing any example code, I don't really know what your problem is.

@rlotun
Copy link
Collaborator

rlotun commented Feb 9, 2011

Ok, I'm closing this. If there is an actual issue, please reopen.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants