-
Notifications
You must be signed in to change notification settings - Fork 99
Using python-netfilterqueue with gevent #5
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
Comments
+1 |
Great idea. I'll see what I can do. For reference, here's a proof of concept gevent echoserver: https://gist.github.com/mattfox/3ea31317a050b163a90b36d88c3e252b (based on https://github.com/gevent/gevent/blob/master/examples/echoserver.py) Works with the following run2 method (same as yours but works in Python 3): https://gist.github.com/mattfox/46b6b6da081f4cb065f0e40e49cd783f |
Oh, and my apologies for being silent for a year. |
Just note that I didn't solve this exactly like in your |
This looks great, thanks! |
I tried using this in an application that uses gevent, and because you call the recv system call rather than using python's socket.recv, gevent isn't able to monkey patch your library.
This causes my application to block at unpredictable times.
I've worked around this by adding a method to NetfilterQueue, but wondered if you might have a better idea about how to do it.
The text was updated successfully, but these errors were encountered: