buglwIP - A Lightweight TCP/IP stack - Bugs: bug #34019, Bug when use...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #34019: Bug when use LWIP_NETIF_TX_SINGLE_PBUF

Submitted by:  wuxinjia <phoenix_wu>
Submitted on:  Tue 16 Aug 2011 02:55:13 AM UTC  
 
Category: TCPSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Simon Goldschmidt <goldsimon>
Open/Closed: ClosedPlanned Release: None
lwIP version: 1.4.0

Sun 11 Sep 2011 11:19:13 AM UTC, comment #1:

Using pcb->mss instead of TCP_MSS is the correct fix, the occasional problems seem to match the report in bug #32417.

Fixed, thanks for reporting.

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Tue 16 Aug 2011 02:55:13 AM UTC, original submission:

when i use LWIP_NETIF_TX_SINGLE_PBUF, tcp_pbuf_prealloc() will malloc MSS length pbuf. But in tcp_write,
space = pcb->mss - (last_unsent->len + unsent_optlen).
In most times, pcb->mss == MSS, but pcb->mss may be negotiated and become less than MSS. So Problem appears. I change tcp_pbuf_prealloc() malloc pcb->mss length pbuf. It seems much better, but sometimes problem (unsent_oversize mismatch (pcb vs. last_unsent)) still appears.

wuxinjia <phoenix_wu>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by goldsimon (Posted a comment)
  • -unavailable- added by phoenix_wu (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 11 Sep 2011 11:19:13 AM UTCgoldsimonStatusNone=>Fixed
      Assigned toNone=>goldsimon
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1