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:
parent
ac56e7a5b9
commit
7337d9e1d1
|
@ -192,7 +192,7 @@ void net_on_write(int fd, short ev, void *arg)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
user->send_queue_size -= ret;
|
user->send_queue_size -= ret;
|
||||||
user->send_queue_offset -= ret;
|
user->send_queue_offset += ret;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
extern void net_on_read_timeout(int fd, short ev, void* arg);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Network callback to accept incoming connections.
|
* Network callback to accept incoming connections.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue