Merge pull request #613 from aozima/pulls
fixed Lwip bug: Assert on TCP netconn_write with sndtimeout set
This commit is contained in:
commit
10fd3d34ad
|
@ -1235,6 +1235,7 @@ do_writemore(struct netconn *conn)
|
||||||
/* partial write */
|
/* partial write */
|
||||||
err = ERR_OK;
|
err = ERR_OK;
|
||||||
conn->current_msg->msg.w.len = conn->write_offset;
|
conn->current_msg->msg.w.len = conn->write_offset;
|
||||||
|
conn->write_offset = 0;
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
#endif /* LWIP_SO_SNDTIMEO */
|
#endif /* LWIP_SO_SNDTIMEO */
|
||||||
|
|
|
@ -1261,6 +1261,7 @@ lwip_netconn_do_writemore(struct netconn *conn)
|
||||||
/* partial write */
|
/* partial write */
|
||||||
err = ERR_OK;
|
err = ERR_OK;
|
||||||
conn->current_msg->msg.w.len = conn->write_offset;
|
conn->current_msg->msg.w.len = conn->write_offset;
|
||||||
|
conn->write_offset = 0;
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
#endif /* LWIP_SO_SNDTIMEO */
|
#endif /* LWIP_SO_SNDTIMEO */
|
||||||
|
|
Loading…
Reference in New Issue