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

Submitter:  Ben <bendov>
Submitted:  Tue 26 Oct 2010 03:59:12 PM UTC
   
 
Category:  TCP Severity:  2 - Minor
Item Group:  Faulty Behaviour Status:  Need Info
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Planned 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>
Group Member
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>
Group 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>

 

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

    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
    2011-01-11 kieranm Open/ClosedOpen Closed
    2010-11-21 goldsimon Severity3 - Normal 2 - Minor
        StatusNone Need Info
    2010-10-26 bendov Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code