buglwIP - A Lightweight TCP/IP stack - Bugs: bug #49725, send-timeout: netwonn_write() can...

 
 

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

bug #49725: send-timeout: netwonn_write() can return ERR_OK without all bytes being written

Submitted by:  Simon Goldschmidt <goldsimon>
Submitted on:  Mon 28 Nov 2016 11:43:17 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: git head

Mon 28 Nov 2016 11:52:08 AM UTC, comment #1:

Fixed.

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Mon 28 Nov 2016 11:43:17 AM UTC, original submission:

As nonblocking netconns, write-timeout can write partly (e.g. write(10) can return with 5 bytes written on timeout).

However, netconn_write() (or netconn_write_partly() without a 'bytes_written' pointer set) has to return ERR_OK here (as ERR_WOULDBLOCK means nothing has been sent).

As a consequence, netconn_write() cannot be used with send-timeout and a check for this has to be added to netconn_write_partly() (just as for nonblocking netconns).

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.

 

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

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 28 Nov 2016 11:52:17 AM UTCgoldsimonOpen/ClosedOpen=>Closed
    Mon 28 Nov 2016 11:52:08 AM UTCgoldsimonStatusIn Progress=>Fixed

    Back to the top


    Powered by Savane 3.1-cleanup1