* post SOCKET_CLOSE when HALFCLOSE_READ, see #1331

* Add closing status

* Add closing stat in info, See #1333
This commit is contained in:
云风
2021-02-03 16:49:40 +08:00
committed by GitHub
parent e23ad8fc6b
commit 1a0461a9af
4 changed files with 62 additions and 40 deletions

View File

@@ -742,6 +742,9 @@ getinfo(lua_State *L, struct socket_info *si) {
case SOCKET_INFO_BIND:
lua_pushstring(L, "BIND");
break;
case SOCKET_INFO_CLOSING:
lua_pushstring(L, "CLOSING");
break;
default:
lua_pushstring(L, "UNKNOWN");
lua_setfield(L, -2, "type");