Commit acfc66cd authored by Deomid Ryabkov's avatar Deomid Ryabkov Committed by Cesanta Bot

Correctly report bytes sent via SSL

This prevented hexdump from showing data sent over SSL when using LWIP net_if

PUBLISHED_FROM=aa520a27bdd21294484c52bf33c8580f3b4bad65
parent 6f140202
......@@ -15099,6 +15099,7 @@ void mg_lwip_ssl_send(struct mg_connection *nc) {
int ret = mg_ssl_if_write(nc, nc->send_mbuf.buf, len);
DBG(("%p SSL_write %u = %d, %d", nc, len, ret));
if (ret > 0) {
mg_if_sent_cb(nc, ret);
mbuf_remove(&nc->send_mbuf, ret);
mbuf_trim(&nc->send_mbuf);
cs->last_ssl_write_size = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment