mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-14 20:26:49 +08:00
Merge branch 'master' into ppp-new
This commit is contained in:
@@ -1235,9 +1235,8 @@ lwip_netconn_do_writemore(struct netconn *conn)
|
||||
u16_t len, available;
|
||||
u8_t write_finished = 0;
|
||||
size_t diff;
|
||||
u8_t dontblock = netconn_is_nonblocking(conn) ||
|
||||
(conn->current_msg->msg.w.apiflags & NETCONN_DONTBLOCK);
|
||||
u8_t apiflags = conn->current_msg->msg.w.apiflags;
|
||||
u8_t dontblock;
|
||||
u8_t apiflags;
|
||||
|
||||
LWIP_ASSERT("conn != NULL", conn != NULL);
|
||||
LWIP_ASSERT("conn->state == NETCONN_WRITE", (conn->state == NETCONN_WRITE));
|
||||
@@ -1246,6 +1245,10 @@ lwip_netconn_do_writemore(struct netconn *conn)
|
||||
LWIP_ASSERT("conn->write_offset < conn->current_msg->msg.w.len",
|
||||
conn->write_offset < conn->current_msg->msg.w.len);
|
||||
|
||||
dontblock = netconn_is_nonblocking(conn) ||
|
||||
(conn->current_msg->msg.w.apiflags & NETCONN_DONTBLOCK);
|
||||
apiflags = conn->current_msg->msg.w.apiflags;
|
||||
|
||||
#if LWIP_SO_SNDTIMEO
|
||||
if ((conn->send_timeout != 0) &&
|
||||
((s32_t)(sys_now() - conn->current_msg->msg.w.time_started) >= conn->send_timeout)) {
|
||||
|
||||
@@ -93,6 +93,11 @@ tcpip_thread(void *arg)
|
||||
/* wait for a message, timeouts are processed while waiting */
|
||||
sys_timeouts_mbox_fetch(&mbox, (void **)&msg);
|
||||
LOCK_TCPIP_CORE();
|
||||
if (msg == NULL) {
|
||||
LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: invalid message: NULL\n"));
|
||||
LWIP_ASSERT("tcpip_thread: invalid message", 0);
|
||||
continue;
|
||||
}
|
||||
switch (msg->type) {
|
||||
#if LWIP_NETCONN
|
||||
case TCPIP_MSG_API:
|
||||
|
||||
Reference in New Issue
Block a user