diff --git a/lualib-src/lua-socket.c b/lualib-src/lua-socket.c index eba3743d..1cb8dcc2 100644 --- a/lualib-src/lua-socket.c +++ b/lualib-src/lua-socket.c @@ -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");