[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #49725] send-timeout: netwonn_write() can return ERR_O
From: |
Simon Goldschmidt |
Subject: |
[lwip-devel] [bug #49725] send-timeout: netwonn_write() can return ERR_OK without all bytes being written |
Date: |
Mon, 28 Nov 2016 11:43:19 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36 |
URL:
<http://savannah.nongnu.org/bugs/?49725>
Summary: send-timeout: netwonn_write() can return ERR_OK
without all bytes being written
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: goldsimon
Submitted on: Mon 28 Nov 2016 11:43:17 AM GMT
Category: sockets/netconn
Severity: 3 - Normal
Item Group: Faulty Behaviour
Status: In Progress
Privacy: Public
Assigned to: goldsimon
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
lwIP version: git head
_______________________________________________________
Details:
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).
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?49725>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #49725] send-timeout: netwonn_write() can return ERR_OK without all bytes being written,
Simon Goldschmidt <=