Allow apps a chance to read from a closed socket if there's stuff to read (like an error message explaining why the socket got closed!).
Allow apps a chance to read from a closed socket if there's stuff to read
(like an error message explaining why the socket got closed!).

(Fixes ra_serf and commit test #27 on Mac OS X.)

* context.c
  (process_connection): Reorder priority of looking at the poll flags to
  put read first in line rather than triggering on POLLHUP first.


git-svn-id: 683495cb1553624b05a54e2ba9533425f69cf277@1074 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845

coapp-packages/serf,coapp-packages/serf,coapp-packages/serf