mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
bugfix: mistake return value from send_buffer
same with SOCKET_DATA, when it is propagated to skynet_socket_poll(), may crash the program
This commit is contained in:
@@ -328,7 +328,7 @@ send_buffer(struct socket_server *ss, struct socket *s, struct socket_message *r
|
|||||||
case EINTR:
|
case EINTR:
|
||||||
continue;
|
continue;
|
||||||
case EAGAIN:
|
case EAGAIN:
|
||||||
return 0;
|
return -1;
|
||||||
}
|
}
|
||||||
force_close(ss,s, result);
|
force_close(ss,s, result);
|
||||||
return SOCKET_CLOSE;
|
return SOCKET_CLOSE;
|
||||||
|
|||||||
Reference in New Issue
Block a user