Issue2425

classification
Title: socket.fileno() returns a different value than the fd value given from poll()
Type: Severity: normal
Components: Library Versions: Jython 2.7
Milestone:
process
Status: closed Resolution: invalid
Dependencies: Superseder:
Assigned To: Nosy List: dhable, teeohhem, zyasoft
Priority: Keywords:

Created on 2015-11-12.15:11:13 by teeohhem, last changed 2015-12-11.02:42:57 by zyasoft.

Messages
msg10460 (view) Author: Tom Alexander (teeohhem) Date: 2015-11-12.15:11:13
Here is a small gist that demonstrates the issue: https://gist.github.com/dhable/74122434b7c8abef42f3

Essentially, code that depends on socket.fileno() and a fd returned select.poll.poll() being the same, could potentially be broken.
msg10465 (view) Author: Dan Hable (dhable) Date: 2015-11-12.17:30:59
This ticket is not a bug in Jython, rather a problem with the test code. After the initial call to connect_ex, I called poller.register method with the sock object. It should have been called with the result of sock.fileno(). With that change, the test passes.

I'll change the gist and comment on github so others finding the chunk have a correct working code sample.
msg10497 (view) Author: Jim Baker (zyasoft) Date: 2015-11-23.20:28:04
OK, sounds like this bug is invalid. Please speak up if this is not the case.
History
Date User Action Args
2015-12-11 02:42:57zyasoftsetstatus: pending -> closed
2015-11-23 20:28:04zyasoftsetstatus: open -> pending
resolution: invalid
messages: + msg10497
nosy: + zyasoft
2015-11-12 17:30:59dhablesetnosy: + dhable
messages: + msg10465
2015-11-12 15:11:13teeohhemcreate