Hello Paul, thanks, you're right, my bad, putting it into the calculator 4 294 967.296 seconds = 49.7102696 days.
So this is a rater related to timer that overflows after ChibiOS(RTOS I use) systicks (which is 1/10000 seconds). Adam pá 28. 5. 2021 v 11:23 odesílatel Matthias Paul <p...@focus-gmbh.com> napsal: > Am 28.05.2021 um 08:58 schrieb vysocan [via lwIP]: > > Hello all, > > I'm having a small STM32F4 application running on devel branch of lwip, It > includes httpd, sntp, smtp client, and mqtt client. All is running well > until the fifth day, when mqtt client starts to receive pbuf=NULL and > disconnects. My reconnect routine reconnects it in some short time, but it > receives pbuf=NULL shortly after. > > Also later on I noticed in log: memp_malloc: out of memory in pool TCP_PCB. > I'm having defined MEMP_NUM_TCP_PCB as 30 and it seems enough for normal > operation, I also upped it to 50, but ended with the same problem > In statistics the NUM_TCP_PCB increases and decreases as it should, but > after uptime past 5 days it stays high with an error flag triggered. > > Quite interestingly it happens exactly after 2^32 milliseconds uptime. I > tried to keep OpenOCD connected to start to peek in, but yet I did not > manage to keep the openOCD running for so long without dropping the > connection. > > Does anyone have any ideas please? > > Thanks in advance, > -- > 731435556 > Adam Baron > > _______________________________________________ > lwip-users mailing list > [hidden email] <http:///user/SendEmail.jtp?type=node&node=36460&i=0> > https://lists.nongnu.org/mailman/listinfo/lwip-users > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://lwip.100.n7.nabble.com/Out-of-memory-in-PCP-PCB-pool-after-2-32-milliseconds-tp36460.html > To unsubscribe from lwIP, click here > <http://lwip.100.n7.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2&code=cGF1bEBmb2N1cy1nbWJoLmNvbXwyfC0xNzg4MTY3ODg4> > . > NAML > <http://lwip.100.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > > Hello Adam, > > isn't 2^32 milliseconds actually ~50 days uptime? > > Best regards, > > Paul > _______________________________________________ > lwip-users mailing list > lwip-users@nongnu.org > https://lists.nongnu.org/mailman/listinfo/lwip-users -- 731435556 Adam Baron
_______________________________________________ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users