lwIP - A Lightweight TCP/IP stack - Bugs: bug #27140, tcp/ip stack hang becouse remains...
You are not allowed to post comments on this tracker with your current authentication level.
bug #27140: tcp/ip stack hang becouse remains a pbuf_free
Submitter: | juan schiavoni <jjsch> | ||
Submitted: | Thu 30 Jul 2009 01:14:34 AM UTC | ||
Category: | None | Severity: | 3 - Normal |
Item Group: | Crash Error | Status: | Invalid |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Closed | Planned Release: | None |
lwIP version: | CVS Head |
Jump to the original submission
Tue 04 Aug 2009 12:31:31 PM UTC, comment #11: |
juan schiavoni <jjsch> |
Tue 04 Aug 2009 12:10:13 AM UTC, comment #10: Hi, tomorrow I will do the change for tcpip_input.
|
juan schiavoni <jjsch> |
Mon 03 Aug 2009 07:17:11 PM UTC, comment #9: As to the first one, the error is calling ethernetif_input from your input function. Call tcpip_input instead.
|
Simon Goldschmidt <goldsimon> |
Mon 03 Aug 2009 06:08:41 PM UTC, comment #8: Hi, Today I could do more test with the hardware. The error has two point, the first one is that tcp_timer_needed is called from the ethernetif_input function, that run in a diferent thread that tcpip_thread. The second one is that tcp_ticks of tcp_slowtmr function, increase the timeout, to free the memory for a connection already closed.
*
*/
|
juan schiavoni <jjsch> |
Mon 03 Aug 2009 10:40:25 AM UTC, comment #7: I'm closing this as it looks like it's down to the port not calling the tcp timers properly. Please re-open if it turns out to be an lwIP problem. |
Kieran Mansley <kieranm> |
Mon 03 Aug 2009 06:48:06 AM UTC, comment #6: Can we have any update on this one? Is it really a bug? Does it interfere with 1.3.1? |
Simon Goldschmidt <goldsimon> |
Fri 31 Jul 2009 02:27:22 PM UTC, comment #5: The port should arrange for tcp_tmr() to be called every 250ms (I think) |
Kieran Mansley <kieranm> |
Fri 31 Jul 2009 02:01:02 PM UTC, comment #4: thanks for the explanation. I did further research, and found that buffer is not freed when a new connection is established, because the tcp_tmr never runs. I think the problem is an error in the avr32 uc porting.
|
juan schiavoni <jjsch> |
Fri 31 Jul 2009 09:00:09 AM UTC, comment #3: netconn_write doesn't allocate a pbuf.
|
Kieran Mansley <kieranm> |
Thu 30 Jul 2009 04:53:41 PM UTC, comment #2: Hi Kieran, the missing pbuf_free is from netconn_write. You could give me son advice where in the source code is the free of buffer allocated for the netconn_write?
|
juan schiavoni <jjsch> |
Thu 30 Jul 2009 01:35:52 PM UTC, comment #1: It's not clear to me what's going wrong. Do you know were the missing pbuf_free() is? |
Kieran Mansley <kieranm> |
Thu 30 Jul 2009 01:14:34 AM UTC, original submission:
Hi, I use the lwip stack ported to avr32 uc. I run the BasicWeb example for FreeRtos, and always hang at 100 hits. In the debug log I see that never free a pbuffer of the netconn_write. I use the CVS version 1.3.2.rc with MEM_LIBC_MALLOC = 1, MEMP_MEM_MALLOC = 1, and MEM_ALIGNMENT = 4.
*
*
|
juan schiavoni <jjsch> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 4 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2009-08-03 | kieranm | Status | None | Invalid | |
Open/Closed | Open | Closed | |||
2009-07-31 | kieranm | Assigned to | #67738 | None | |
2009-07-30 | jjsch | Carbon-Copy | - | Added jjsch |
Powered by Savane 3.13-3230.
Corresponding source code
Hi, the change work fine, now the slow_timer is assigned to the tcpip_thread.
I need to know if there are a setting to limit the connection closed that are in time_wait? My solution was to change the TCP_MSL to 250 mS.