mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
shutdown read while halfclose
This commit is contained in:
@@ -1082,6 +1082,7 @@ close_socket(struct socket_server *ss, struct request_close *request, struct soc
|
|||||||
return SOCKET_CLOSE;
|
return SOCKET_CLOSE;
|
||||||
}
|
}
|
||||||
s->type = SOCKET_TYPE_HALFCLOSE;
|
s->type = SOCKET_TYPE_HALFCLOSE;
|
||||||
|
shutdown(s->fd, SHUT_RD);
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user