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:
Jan Vidar Krey 2009-03-13 16:51:27 +01:00
parent ac56e7a5b9
commit 7337d9e1d1
2 changed files with 1 additions and 2 deletions

View File

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

View File

@ -35,7 +35,6 @@ extern void net_on_write(int fd, short ev, void *arg);
*/
extern void net_on_read_timeout(int fd, short ev, void* arg);
/**
* Network callback to accept incoming connections.
*/