Ensure the send queue offset is calculated correctly in case of a partial queued write.
Signed-off-by: Jan Vidar Krey <janvidar@extatic.org>
This commit is contained in:
@@ -192,7 +192,7 @@ void net_on_write(int fd, short ev, void *arg)
|
||||
else
|
||||
{
|
||||
user->send_queue_size -= ret;
|
||||
user->send_queue_offset -= ret;
|
||||
user->send_queue_offset += ret;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user