eventmachine/eventmachine — pull request #380 by aaronriekenberg (2012-11-09 12:32:41+00:00)
Title: Fix calling pause in post_init when epoll is enabled

Previously calling pause in post_init did not stop receive_data from begin called on the connection when epoll is enabled.

Fix this by only setting EPOLLIN in the new ConnectionDescriptor if SelectForRead is true.

If pause is called in post_init, SelectForRead will have become false during EventCallback.

I suspect kqueue has this same bug in AcceptorDescriptor::Read but I don't have a way to test this.