bugfix: inc sending ref, See issue #774

This commit is contained in:
Cloud Wu
2017-12-04 10:55:25 +08:00
parent f12fa7e8f9
commit 45d848c910

View File

@@ -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);