mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +00:00
enable read when closing
This commit is contained in:
@@ -1069,6 +1069,7 @@ close_socket(struct socket_server *ss, struct request_close *request, struct soc
|
|||||||
struct socket_lock l;
|
struct socket_lock l;
|
||||||
socket_lock_init(s, &l);
|
socket_lock_init(s, &l);
|
||||||
if (!nomore_sending_data(s)) {
|
if (!nomore_sending_data(s)) {
|
||||||
|
enable_read(ss,s,true);
|
||||||
int type = send_buffer(ss,s,&l,result);
|
int type = send_buffer(ss,s,&l,result);
|
||||||
// type : -1 or SOCKET_WARNING or SOCKET_CLOSE, SOCKET_WARNING means nomore_sending_data
|
// type : -1 or SOCKET_WARNING or SOCKET_CLOSE, SOCKET_WARNING means nomore_sending_data
|
||||||
if (type != -1 && type != SOCKET_WARNING)
|
if (type != -1 && type != SOCKET_WARNING)
|
||||||
|
|||||||
Reference in New Issue
Block a user