buglwIP - A Lightweight TCP/IP stack - Bugs: bug #28818, New connection probably not marked...

 
 

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

bug #28818: New connection probably not marked writable on accept()

Submitted by:  Alexander Y <binturong>
Submitted on:  Fri 05 Feb 2010 09:06:13 AM UTC  
 
Category: sockets/netconnSeverity: 3 - Normal
Item Group: Faulty BehaviourStatus: Fixed
Privacy: PublicAssigned to: Simon Goldschmidt <goldsimon>
Open/Closed: ClosedPlanned Release: None
lwIP version: CVS Head

Mon 08 Feb 2010 12:34:02 PM UTC, comment #2:

Fixed, thanks for reporting.

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Fri 05 Feb 2010 09:52:17 AM UTC, comment #1:

I think you are right. At least I didn't think of that direction. The change was necessary though since client and listening connections are not writable directly after creating them.

The sendevent should be raised when creating a new netconn while accepting. I'll check that.

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Fri 05 Feb 2010 09:06:13 AM UTC, original submission:

This recent modification to sockets.c looks problematic:

However, sendevent appears to be only set by NETCONN_EVT_SENDPLUS, and that is only generated from sent_tcp(), err_tcp(), do_close_internal(), do_connected().

Shouldn't sendevent be raised on accept() as well? What should a server do if it listens and accepts a connection and then wants to write to the socket?

Alexander Y <binturong>

 

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

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 08 Feb 2010 12:34:02 PM UTCgoldsimonStatusIn Progress=>Fixed
      Assigned toNone=>goldsimon
      Open/ClosedOpen=>Closed
    Fri 05 Feb 2010 09:52:17 AM UTCgoldsimonStatusNone=>In Progress

    Back to the top


    Powered by Savane 3.1-cleanup1