-
Notifications
You must be signed in to change notification settings - Fork 635
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
setoption failing in 3.0.0 (works with the old RC) #371
Comments
This seems to work: local socket = require "socket"
local server = assert(socket.tcp())
server:settimeout(60)
assert(server:bind("*", 14123)) -- switch position between 'bind' and 'setoption'
assert(server:setoption("reuseaddr", true)) |
This seems to bisect to 77bba62. |
adding to my previous comment: using |
This looks nasty on a first glance, as per the docs:
So there's a catch 22 it seems. Any ideas @diegonehab @Florob (pinging because the referenced commit above mentions you) |
I've been out of the loop for most things Lua for a few years, so not sure how much I can help here. Judging by the discussion in #147 and looking at A pragmatic approach might be to add an optional |
Downstream issue: Kong/kong#8590
To reproduce run this docker command:
Once in the shell create a Lua file called
test.lua
;Execute the following commands:
Output:
The text was updated successfully, but these errors were encountered: