mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 03:53:09 +00:00
bugfix: inc sending ref, See issue #774
This commit is contained in:
@@ -747,6 +747,8 @@ send_buffer(struct socket_server *ss, struct socket *s, struct socket_lock *l, s
|
||||
s->high.head = buf;
|
||||
}
|
||||
s->dw_buffer = NULL;
|
||||
// socket locked. Don't need use 'add_sending_ref', just ATOM_INC is ok.
|
||||
ATOM_INC(&s->sending);
|
||||
}
|
||||
int r = send_buffer_(ss,s,l,result);
|
||||
socket_unlock(l);
|
||||
|
||||
Reference in New Issue
Block a user