Ticket #35 (closed defect: invalid)

Opened 5 months ago

Last modified 5 months ago

EM doesn't handle select errors in windows

Reported by: rogerdpack Assigned to:
Priority: major Milestone:
Keywords: Cc:

Description

Sometimes, on windows, select will return immediately with file descriptors set within the error fd_set. This isn't handled currently, so EM spins on select, taking up 100% cpu [but still working, if you can call that working].

Change History

06/27/08 07:52:05 changed by rogerdpack

I take that back. It appears that windows incorrectly ignores pending sockets that fail and are shown in the error fd_set. So smaller problem than mentioned.

Select can still return immediately with failure, however. In certain instances some active sockets become invalid [somehow], which causes select to always return immediately with an error message. I've usually fixed this in the past by looping over all sockets and checking if any of them are invalid, and deleting/removing them if they area. I'd be happy to submit a patch.

06/27/08 07:52:25 changed by rogerdpack

  • summary changed from EM doesn't handle error file descritors for windows to EM doesn't handle select errors in windows.

06/30/08 13:41:26 changed by rogerdpack

hack patch available in the ticket on handling socks > 1024

06/30/08 20:13:56 changed by raggi

  • status changed from new to closed.
  • resolution set to invalid.

Tracking on other ticket, closing this one.