-
Notifications
You must be signed in to change notification settings - Fork 93
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
Support for HAProxy Lua non-blocking core.Socket #114
Comments
The socket initialization is a bit confusing at the moment, but I think the best approach would be to provide a new |
You mean this constructor (of the TCP socket) right? |
There's already a |
Description
We are using pgmoon inside of HAProxy Lua to connect to our Postgres DB server, make queries, establish
LISTEN
pgnotify clients, etc.However the standard Lua Socket class is blocking as you can see from the source code.
TODO: describe the blocking nature of
luasocket
more clearly aboveFrom an HAProxy blog post:
As such we forked
pgmoon
and simply replacedluasocket
with HAProxy's non-blocking Lua Socket class.We'd like to discuss how to get his merged upstream so that others can benefit and we can get back onto using a non-forked pgmoon implementation.
I'll open a PR and link it to this issue with our naive implementation but we'd like to hear thoughts/suggestions on getting this feature merged.
Merry X-mas @leafo! 😄
cc @kriscode1
The text was updated successfully, but these errors were encountered: