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

Submitter:  wuxinjia <phoenix_wu>
Submitted:  Tue 16 Aug 2011 02:55:13 AM UTC
   
 
Category:  TCP Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned 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>
Group administrator
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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-09-11 goldsimon StatusNone Fixed
        Assigned toNone goldsimon
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code