This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ljl@localhost ~]$ cat t.lua | |
local array = {"Google", "Runoob"} | |
for key,value in ipairs(array) | |
do | |
print(key, value) | |
end | |
[ljl@localhost ~]$ luajit -bL t.lua | |
-- BYTECODE -- t.lua:0-6 | |
KGC 0 table | |
KGC 1 "ipairs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/home/ljl/code/orinc/coro-nginx-module/work/nginx/sbin/nginx | |
t/02-hiredis.t TEST 1: basic. | |
t/02-hiredis.t TEST 1: basic. - Can't connect to 127.0.0.1:1984: Connection refused | |
Retry connecting after 0.675 sec | |
t/02-hiredis.t TEST 1: basic. - Can't connect to 127.0.0.1:1984: Connection refused | |
Retry connecting after 0.825 sec | |
==6991== Invalid read of size 8 | |
==6991== at 0x4ACF89: ngx_http_coro_ffi_redis_command (ngx_http_coro_hiredis_wrapper.c:303) | |
==6991== by 0x405AFEC: lj_vm_ffi_call (in /opt/luajit21/lib/libluajit-5.1.so.2.1.0) | |
==6991== by 0x40B798E: lj_ccall_func (lj_ccall.c:1382) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd openresty-plus-h3 && debclean | |
Cleaning in directory /home/ljl/code/openresty-plus-packaging/deb/openresty-plus-h3 | |
dpkg-buildpackage --rules-target clean -us -uc -ui | |
dpkg-buildpackage: info: source package openresty-plus-h3 | |
dpkg-buildpackage: info: source version 1.21.4.1.1-1~focal1 | |
dpkg-buildpackage: info: source distribution focal | |
dpkg-buildpackage: info: source changed by OpenResty Admin <admin@openresty.com> | |
fakeroot debian/rules clean | |
dh clean --parallel --with autotools-dev,systemd | |
dh: warning: The autotools-dev sequence is deprecated and replaced by dh in debhelper (>= 9.20160115) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd openresty-plus-h3 && debclean | |
Cleaning in directory /home/ljl/code/openresty-plus-packaging/deb/openresty-plus-h3 | |
dpkg-buildpackage --rules-target clean -us -uc -ui | |
dpkg-buildpackage: info: source package openresty-plus-h3 | |
dpkg-buildpackage: info: source version 1.21.4.1.1-1~focal1 | |
dpkg-buildpackage: info: source distribution focal | |
dpkg-buildpackage: info: source changed by OpenResty Admin <admin@openresty.com> | |
fakeroot debian/rules clean | |
dh clean --parallel --with autotools-dev,systemd | |
dh: warning: The autotools-dev sequence is deprecated and replaced by dh in debhelper (>= 9.20160115) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd openresty-plus-h3 && debclean | |
Cleaning in directory /home/ljl/code/openresty-plus-packaging/deb/openresty-plus-h3 | |
dpkg-buildpackage --rules-target clean -us -uc -ui | |
dpkg-buildpackage: info: source package openresty-plus-h3 | |
dpkg-buildpackage: info: source version 1.21.4.1.1-1~focal1 | |
dpkg-buildpackage: info: source distribution focal | |
dpkg-buildpackage: info: source changed by OpenResty Admin <admin@openresty.com> | |
fakeroot debian/rules clean | |
dh clean --parallel --with autotools-dev,systemd | |
dh: warning: The autotools-dev sequence is deprecated and replaced by dh in debhelper (>= 9.20160115) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/resty/memcached.lua b/lib/resty/memcached.lua | |
index bc2c496..41308a7 100644 | |
--- a/lib/resty/memcached.lua | |
+++ b/lib/resty/memcached.lua | |
@@ -7,6 +7,7 @@ local match = string.match | |
local tcp = ngx.socket.tcp | |
local strlen = string.len | |
local concat = table.concat | |
+local tab_insert = table.insert | |
local setmetatable = setmetatable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File path 'ld/nginx.6.melf' cannot be resolved | |
File path 'ld/nginx.6.melf' cannot be resolved | |
File path 'dbg/nginx.5.debug' cannot be resolved | |
Systemtap translator/driver (version 4.6-18/0.177, commit release-4.2-779-g6862797ae176 + changes) | |
Copyright (C) 2005-2021 Red Hat, Inc. and others | |
This is free software; see the source for copying conditions. | |
tested kernel versions: 2.6.32 ... 5.12.0-rc2 | |
enabled features: BOOST_STRING_REF LIBXML2 NLS READLINE | |
Created temporary directory "/tmp/stapcVcOfR" | |
Session arch: x86_64 release: 4.18.0-240.10.1.el8_3.x86_64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location /hello { | |
content_by_lua_block { | |
local lim = require "limit_conn" | |
-- local key = ngx.var.binary_remote_addr | |
local exceptions = ngx.worker.exceptions() | |
local key = string.char(exceptions % 256) .. ngx.var.binary_remote_addr | |
local delay, err = lim:incoming(key, true) | |
if not delay then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/opsrun | |
use xray-cli; | |
use xray-agent-lib; | |
my Int $MAX-ITERS = 3; | |
my Str (@iterators, @results); | |
my Bool $finished; | |
my Int %mem{Str} = ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"golang.org/x/net/http2/hpack" | |
) | |
func main() { | |
fmt.Println("nginx", "→", Encode("MYWS")) | |
fmt.Println("nginx", "→", Encode("nginx")) |
NewerOlder