mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +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:
|
||||
continue;
|
||||
case EAGAIN:
|
||||
return 0;
|
||||
return -1;
|
||||
}
|
||||
force_close(ss,s, result);
|
||||
return SOCKET_CLOSE;
|
||||
|
||||
Reference in New Issue
Block a user