mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
report last accept time
This commit is contained in:
@@ -693,6 +693,8 @@ getinfo(lua_State *L, struct socket_info *si) {
|
||||
lua_setfield(L, -2, "type");
|
||||
lua_pushinteger(L, si->read);
|
||||
lua_setfield(L, -2, "accept");
|
||||
lua_pushinteger(L, si->rtime);
|
||||
lua_setfield(L, -2, "rtime");
|
||||
if (si->name[0]) {
|
||||
lua_pushstring(L, si->name);
|
||||
lua_setfield(L, -2, "sock");
|
||||
|
||||
Reference in New Issue
Block a user