Re: Lua plugin memory limit on Linux.
I caught up with some readings in the latest LuaJIT. It looks like we can even do away with the 2GB limit. https://stackoverflow.com/questions/35155444/why-is-luajits-memory-limited-to-1-2-gb-on-64-bit-platforms Would be nice if you can try that out in your setup (basically apply a patch and re-b
Re: Fetching URL contents in a plugin
Hopefully this is of help. https://github.com/apache/trafficserver/pull/5639/files#diff-5c2f3297b2a6ac986fbf042017435a6a It illustrates an example of using the Lua script to get the content of a response into variable and print it out. Kit On Thu, Jun 20, 2019 at 5:41 PM Eric Friedrich -X (efri
Fetching URL contents in a plugin
2019-06-20
Thread
Eric Friedrich -X (efriedri - TRITON UK BIDCO LIMITED c/o Alter Domus (UK) Limited -OBO at Cisco)
Is there a simple API call to use to fetch the contents of a URL into a buffer? I found an example of something close in the authproxy sample plugin, but there looks to be almost a hundred lines of rather boilerplate code. I’d like to avoid the copy and paste if I can —Eric
RE: Lua plugin memory limit on Linux.
Kit, This is the only error message seen from diags.log. It did not cause the ATS to core dump. [Jun 20 13:27:45.258] traffic_server NOTE: plugin.config loading ... [Jun 20 13:27:45.259] traffic_server NOTE: loading plugin '/home/pebc/opt/ats-gh-master/libexec/trafficserver/tslua.so' [Jun 20 13
Re: New API proposal: TSEmergencyShutdown
Weighing in late, as usual, but I'm not sure what Leif means by "ts/mgmt.h". Did you mean "ts/mgmtapi.h"? If so, that's a rather heavy weight solution for the desired action here. AFAICT using that requires setting up a full API client, not just making a single call to send a message. You'd also ha