Skip to content
Snippets Groups Projects
Commit ca3e20cb authored by deuce's avatar deuce
Browse files

Actually increment sent... don't set it to bytes written.

parent 4cca8ffe
Branches
Tags
No related merge requests found
......@@ -432,7 +432,7 @@ static int writebuf(http_session_t *session, const char *buf, size_t len)
SLEEP(1);
if(avail > len-sent)
avail=len-sent;
sent=RingBufWrite(&(session->outbuf), ((char *)buf)+sent, avail);
sent+=RingBufWrite(&(session->outbuf), ((char *)buf)+sent, avail);
}
return(sent);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment