Skip to content

Commit

Permalink
Correctly report bytes sent via SSL
Browse files Browse the repository at this point in the history
This prevented hexdump from showing data sent over SSL when using LWIP net_if

PUBLISHED_FROM=aa520a27bdd21294484c52bf33c8580f3b4bad65
  • Loading branch information
Deomid Ryabkov authored and cesantabot committed May 11, 2017
1 parent 6f14020 commit acfc66c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mongoose.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit acfc66c

Please sign in to comment.