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

Submitter:  Simon Goldschmidt <goldsimon>
Submitted:  Mon 28 Nov 2016 11:43:17 AM UTC
   
 
Category:  sockets/netconn Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  None
lwIP version:  git head

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

Fixed.

Simon Goldschmidt <goldsimon>
Group administrator
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>
Group administrator

 

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

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-28 goldsimon Open/ClosedOpen Closed
    2016-11-28 goldsimon StatusIn Progress Fixed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code