buglwIP - A Lightweight TCP/IP stack - Bugs: bug #31469, Repetitive lwip_send() calls...

 
 

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

bug #31469: Repetitive lwip_send() calls causes bad behaviour

Submitted by:  Ben <bendov>
Submitted on:  Tue 26 Oct 2010 03:59:12 PM UTC  
 
Category: TCPSeverity: 2 - Minor
Item Group: Faulty BehaviourStatus: Need Info
Privacy: PublicAssigned to: None
Open/Closed: ClosedPlanned Release: None
lwIP version: 1.3.0

Tue 11 Jan 2011 01:57:35 PM UTC, comment #2:

Closing this as it's old code and not enough info.

Kieran Mansley <kieranm>
Project Administrator
Sun 21 Nov 2010 02:27:14 PM UTC, comment #1:

Unfortunately, this is way too little information to help you. Of course, the first thing I'd suggest you to do is upgrade to lwIP 1.4.0 RC1 (or 1.3.2 if you don't want to use the release candidate).

Then, for 1.3.0, I'd suggest to turn off LWIP_TCPIP_CORE_LOCKING (set it to 0), since this is really, really EXPERIMENTAL code, especially in 1.3.0!

And finally, you might need to debug this yourself a bit more, since it works for me (although I'm using the latest CVS code, so it might be a bug fixed in between) - it might well be a bug in your port, or be related to specific timings, which I cannot reproduce here.

I've marked it as 'minor' as it is related to experimental code, only.

Simon Goldschmidt <goldsimon>
Project Administrator
Tue 26 Oct 2010 03:59:12 PM UTC, original submission:

I'm running lwip 1.3.0 on xilkernel 4.0.
Using lwip_send function in a server application, the following code:

char* str = "something\r\n";
int len = strlen(str);
while (true)
{
lwip_send(sd, str, len, 0);
}

is excecuted once a connection to the server is established.
The result is:
1. Only one message ("something\r\n") received on the client.
2. after unknown number of sends the lwip_send function does not return. after debugging i've found that it is stuck in tcpip_apimsg_lock() (tcpip.c) and to be more specific in LOCK_TCPIP_CORE().

Any help regarding this issue will be appreciated.
Ben.

Ben <bendov>

 

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 kieranm (Posted a comment)
  • -unavailable- added by goldsimon (Posted a comment)
  • -unavailable- added by bendov (Submitted the item)
  • -unavailable- added by bendov
  •  

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

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 11 Jan 2011 01:57:35 PM UTCkieranmOpen/ClosedOpen=>Closed
    Sun 21 Nov 2010 02:27:14 PM UTCgoldsimonSeverity3 - Normal=>2 - Minor
      StatusNone=>Need Info
    Tue 26 Oct 2010 03:59:12 PM UTCbendovCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1