mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +00:00
add skynet.context_ptr() & noneblocking socket.close
This commit is contained in:
@@ -49,6 +49,10 @@ struct socket_pool {
|
||||
|
||||
static void
|
||||
reply(struct skynet_context * ctx, uint32_t source, int session, char * cmd, int sz) {
|
||||
if (session == 0) {
|
||||
// don't reply when session == 0
|
||||
return;
|
||||
}
|
||||
if (sz < 0) {
|
||||
sz = strlen(cmd);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user