|
From: | Yanrui Hu |
Subject: | [lwip-users] lwip crash inside do_writemore when used in iOS extension |
Date: | Thu, 14 Apr 2016 13:56:36 +0800 |
Hi, Guys,
Hope I can get this issue solved at here. The version is the latest 1.4.1.
lwip is used inside iOS extension to receive IP packets. and then use socket API to get TCP content and then send the data out.
The usages is not complex, netif_set_default/netif_set_up to setup and lwip_accept/lwip_send etc for data send and receive.
the simple http connection works well and the request and response all works.
but, when too many connections made - eg. 10-20 http connections. the lwip will crash.
all the time it will crash at do_writemore()
most time at this assert line:
LWIP_ASSERT("conn->write_offset < conn->current_msg->msg.w.len",
conn->write_offset < conn->current_msg->msg.w.len);
and some time also at
LWIP_ASSERT("conn->pcb.tcp != NULL", conn->pcb.tcp != NULL);
all the settings are default (like #define MEM_SIZE 1048576)
is this issue caused by limitation of resource usage in extension?
or what information need for proceed solve this issue?
[Prev in Thread] | Current Thread | [Next in Thread] |