jsocket wait_multiple potentially returns more ready sockets that it fills into readySocks

Description

When poll() or select() gets an event on >=1 socket, it scans for events and fills in readySockets.
In some circumstances there will be no events on a socket and therefore readySocks will not be added to.
However wait_multiple still returns the number returned by poll() or select().

Code that uses wait_multiple (or wait_read_multiple/wait_write_multiple), will then check the readySocks items that aren't there (and typically assert as a consequence).

Conclusion

None

Activity

Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Components

Assignee

Reporter

Priority

Fix versions

Pull Request URL

Created July 10, 2019 at 2:22 PM
Updated July 11, 2019 at 9:14 AM
Resolved July 11, 2019 at 9:14 AM