# File lib/pr_eventmachine.rb, line 389
389:     def eventable_read
390:       begin
391:         if io.respond_to?(:read_nonblock)
392:           10.times {
393:             data = io.read_nonblock(4096)
394:             EventMachine::event_callback uuid, ConnectionData, data
395:           }
396:         else
397:           data = io.sysread(4096)
398:           EventMachine::event_callback uuid, ConnectionData, data
399:         end
400:       rescue Errno::EAGAIN
401:         # no-op
402:       rescue Errno::ECONNRESET, EOFError
403:         @close_scheduled = true
404:         EventMachine::event_callback uuid, ConnectionUnbound, nil
405:       end
406: 
407:     end