You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to create a LUA script which would invoke different addresses (not paths) each assigned to a thread. It would be similar to the addr.lua script that is provided as a sample, but using specific addresses instead of doing using the lookup method. The goal is to spread the load on different ports of the same server.
I am thinking that these addresses could come from the script arguments, or from a port range taken out of the main addr argument. My issue is that these come as strings, and the thread requires and addr type. I don't understand how to do that with the LUA extensibility. I found a parse_url method in the source but it's not available to the LUA host AFAIK.
The text was updated successfully, but these errors were encountered:
I'd like to create a LUA script which would invoke different addresses (not paths) each assigned to a thread. It would be similar to the addr.lua script that is provided as a sample, but using specific addresses instead of doing using the
lookup
method. The goal is to spread the load on different ports of the same server.I am thinking that these addresses could come from the script arguments, or from a port range taken out of the main
addr
argument. My issue is that these come as strings, and thethread
requires andaddr
type. I don't understand how to do that with the LUA extensibility. I found aparse_url
method in the source but it's not available to the LUA host AFAIK.The text was updated successfully, but these errors were encountered: