fixed Lwip bug: Assert on TCP netconn_write with sndtimeout set

ref: http://savannah.nongnu.org/bugs/?38219
This commit is contained in:
aozima 2016-03-02 20:41:14 +08:00
parent 24d089d80a
commit 8131ea9c30
2 changed files with 2 additions and 0 deletions

View File

@ -1235,6 +1235,7 @@ do_writemore(struct netconn *conn)
/* partial write */
err = ERR_OK;
conn->current_msg->msg.w.len = conn->write_offset;
conn->write_offset = 0;
}
} else
#endif /* LWIP_SO_SNDTIMEO */

View File

@ -1261,6 +1261,7 @@ lwip_netconn_do_writemore(struct netconn *conn)
/* partial write */
err = ERR_OK;
conn->current_msg->msg.w.len = conn->write_offset;
conn->write_offset = 0;
}
} else
#endif /* LWIP_SO_SNDTIMEO */