mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
Halfclose (#1338)
* post SOCKET_CLOSE when HALFCLOSE_READ, see #1331 * Add closing status * Add closing stat in info, See #1333
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user