Hello, which TCP/IP Stack are you using? FreeBSD or lwIP?
Richard ITR GmbH web: http://www.itrgmbh.com email: i...@itrgmbh.com > -----Ursprüngliche Nachricht----- > Von: ecos-discuss-ow...@ecos.sourceware.org [mailto:ecos-discuss- > ow...@ecos.sourceware.org] Im Auftrag von Laurie Gellatly > Gesendet: Sonntag, 28. April 2013 13:39 > An: ecos-disc...@sourceware.org > Betreff: [ECOS] FreeBSD not always releasing ACK MBUFs > > Hi All, > I'm using eCosPro from pre eCos 3.0 to serve web pages with embedded > images, CSS and javascripts. > Some pages are set to refresh their content and eventually the application > runs > out of MBUFs and restarts. > I can use my own web server or the CYGPKG_HTTPD server with the same > result. > > I used the CYGPKG_HTTPD server on port 81 to monitor network stats. > What I find is that the ‘HEADER’ type MBUFs grow and never shrink, eventually > running out of MBUFs completely. > The amount of growth in each iteration varies. > When I dump the data in the HEADER MBUFs (modified support.c to print these > short MBUFs) and compared them to the network traffic seen by wireshark I > have confirmed that the HEADERs are correct ACK packets sent at the close of > various HTTP get sequences. > For some reason they are not being released. > > I also found that the number of timeout entries (NTIMEOUTS) in timeout.c > (default 8) is WAY below what is needed (about 70 being used). > > I'm thinking it's something to do with TIME_WAIT not closing the tcpcb when it > should. > > Has anyone seen this before or can suggest a way to troubleshoot this? > > Thanks ...Laurie:{) > > > > > -- > Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos > and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss