提交 8131ea9c 编写于 作者: wuyangyong's avatar wuyangyong

fixed Lwip bug: Assert on TCP netconn_write with sndtimeout set

ref: http://savannah.nongnu.org/bugs/?38219
上级 24d089d8
......@@ -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 */
......
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册