Skip to content

Commit 85f9267

Browse files
committed
1 parent dcd56d1 commit 85f9267

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

examples/echo.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
var $input = $('#input');
4545
var call = JSON.stringify({
4646
method: 'call',
47-
params: ['echo', [JSON.parse($input.val())]],
47+
params: ['echo', JSON.parse($input.val())],
4848
id: ++id
4949
});
5050

examples/echo.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
json=require('json');
22

3-
function echo(a)
3+
function call(a)
44
if type(a) == 'table' then
55
return {{a}}
66
end

misc/nginx.dev.conf

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ events {
1515
use kqueue;
1616
}
1717

18-
# Each connection needs FD or 2 if proxy on
19-
worker_rlimit_nofile 25000;
20-
2118
http {
2219

2320
access_log off;
@@ -28,6 +25,8 @@ http {
2825
upstream tnt {
2926
server 127.0.0.1:9999 max_fails=1 fail_timeout=30s;
3027
server 127.0.0.1:9999 backup;
28+
29+
keepalive 1024;
3130
}
3231

3332
server {

ngx_http_tnt_module.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -849,6 +849,8 @@ ngx_http_set_input_parse_errmsg(ngx_http_request_t *r,
849849
ngx_snprintf(ctx->errmsg.data, ctx->errmsg.len, ERR_RES_FMT,
850850
ctx->in_t.errcode, ctx->in_t.errmsg);
851851

852+
dd("parse error: %.*s", (int)ctx->errmsg.len, ctx->errmsg.data);
853+
852854
}
853855

854856
return NGX_OK;

0 commit comments

Comments
 (0)