We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11a7981 commit d4955c0Copy full SHA for d4955c0
src/ngx_http_lua_socket_tcp.c
@@ -160,6 +160,8 @@ enum {
160
SOCKET_CONNECT_TIMEOUT_INDEX = 2,
161
SOCKET_SEND_TIMEOUT_INDEX = 4,
162
SOCKET_READ_TIMEOUT_INDEX = 5,
163
+ SOCKET_CLIENT_CERT_INDEX = 6 ,
164
+ SOCKET_CLIENT_PKEY_INDEX = 7 ,
165
};
166
167
@@ -424,7 +426,7 @@ ngx_http_lua_socket_tcp(lua_State *L)
424
426
425
427
ngx_http_lua_check_context(L, ctx, NGX_HTTP_LUA_CONTEXT_YIELDABLE);
428
- lua_createtable(L, 5 /* narr */, 3 /* nrec */);
429
+ lua_createtable(L, 7 /* narr */, 1 /* nrec */);
430
lua_pushlightuserdata(L, ngx_http_lua_lightudata_mask(
431
tcp_socket_metatable_key));
432
lua_rawget(L, LUA_REGISTRYINDEX);
0 commit comments