shutdown read while halfclose

This commit is contained in:
Cloud Wu
2020-10-19 10:55:32 +08:00
parent 1dfddc0d84
commit 6c3e969e91

View File

@@ -1082,6 +1082,7 @@ close_socket(struct socket_server *ss, struct request_close *request, struct soc
return SOCKET_CLOSE;
}
s->type = SOCKET_TYPE_HALFCLOSE;
shutdown(s->fd, SHUT_RD);
return -1;
}