Handle large messages through libev correctly

This fixes a problem similar to what 880408d92c2c5 fixed for
asyncore.