buglwIP - A Lightweight TCP/IP stack - Bugs: bug #20155, select() with errorfd set

 
 

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

bug #20155: select() with errorfd set

Submitter:  Srinivas Gollakota <gollakota>
Submitted:  Tue 12 Jun 2007 02:57:02 PM UTC
   
 
Category:  sockets/netconn Severity:  1 - Wish
Item Group:  Feature Request Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  None
lwIP version:  CVS Head

Fri 29 Jan 2010 11:07:27 PM UTC, comment #5: 

Checked in patch #6860 - this should be done now.

Simon Goldschmidt <goldsimon>
Group administrator
Sat 22 Aug 2009 10:08:58 PM UTC, comment #4: 

There seems to be a patch for this:
patch #6860: Add non-blocking support for connect, and except set support in select

Simon Goldschmidt <goldsimon>
Group administrator
Thu 28 Jun 2007 10:58:28 AM UTC, comment #3: 

Can we collect a list of which events should lead to setting the error fd set?

- tcp_pcb->err() is called
- connect failed?
- I can not think about udp or raw errors...

http://www.opengroup.org/onlinepubs/000095399/functions/select.html says:
"A socket shall be considered to have an exceptional condition pending if a receive operation with O_NONBLOCK clear for the open file description and with the MSG_OOB flag set would return out-of-band data without blocking. (It is protocol-specific whether the MSG_OOB flag would be used to read out-of-band data.) A socket shall also be considered to have an exceptional condition pending if an out-of-band data mark is present in the receive queue. Other circumstances under which a socket may be considered to have an exceptional condition pending are protocol-specific and implementation-defined."

Simon Goldschmidt <goldsimon>
Group administrator
Fri 15 Jun 2007 07:20:11 AM UTC, comment #2: 

Integrating the error fd set would be some work since currently the  only events passed on to the socket layer are send and receive events. Error events would have to be integrated in api_lib.c/api_msg.c before select/selscan can work with them.

Simon Goldschmidt <goldsimon>
Group administrator
Tue 12 Jun 2007 03:01:36 PM UTC, comment #1: 

This is not the only problem with select. But I don't know if someone will be work on that on the current release...

But if you have a solution, provide it, we will check it and integrate if it's good...


Frédéric Bernon <fbernon>
Group Member
Tue 12 Jun 2007 02:57:02 PM UTC, original submission:  

select()/lwip_selscan checks only for read and write fd's not error fd's. If there is a socket error (connection error) then select should report if the socket fd is present in the error fd set.
-Srinivas.

Srinivas Gollakota <gollakota>

 

(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 (Posted a comment)
  • -email is unavailable- added by fbernon (Posted a comment)
  • -email is unavailable- added by gollakota (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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-01-29 goldsimon StatusPostponed Fixed
        Assigned toNone goldsimon
        Open/ClosedOpen Closed
    2009-08-22 goldsimon Planned Release 1.4.0
    2007-07-10 goldsimon Severity3 - Normal 1 - Wish
    2007-06-21 goldsimon StatusNone Postponed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code