What is the maximum number of connections you have setup? Which processor are you using?
Trampas On Tue, Feb 4, 2020 at 9:08 AM Adam Baron <[email protected]> wrote: > I'm bit new to lwip, and I'm using it on STM32407 with ChibiOS which is > RTOS. I'm using current stable version of lwip and bindings form ChibiOS to > run it as threads. My static and also dynamically generated html pages are > served well and without any issues. But I have problem with POST. I use the > example post striped down to bare minimum, that is the application does not > do any other thing on httpd_post_begin, _receive_data, _finished, then to > print the > parameters received. > > Now what I;m experiencing is that after few POSTs the whole lwip gets > stuck. Curiously enough, it does not get stuck in POST itself but in the > sending of subsequent html pages. > > Then after few more POSTs I get this from debug: > Opening /index.html > http_recv: data 536926228 len 1420 > http_send: pcb=536925064 hs=536926136 left=1420 > Trying to send 17 bytes > Sent 17 bytes > Trying to send 63 bytes > Sent 63 bytes > Trying to send 16 bytes > Sent 16 bytes > Trying to send 6 bytes > Sent 6 bytes > Trying to send 27 bytes > Sent 27 bytes > Trying to send 1420 bytes > Sent 1420 bytes > End of file. > Closing connection 536925064 > ethernet_output: sending packet p > ethernet_output: sending packet p > etharp_timer > etharp_timer > ethernet_output: sending packet p > etharp_timer > ....... > etharp_timer > > And the lwip is stuck, not sending the file requested by next GET, while > other threads work well. > Both threads serving lwip, called lwipthread and tcpip_thread are in good > state and not over flooded. > > Any ideas what can be the cause? > > Thanks Adam > _______________________________________________ > lwip-users mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/lwip-users
_______________________________________________ lwip-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lwip-users
