Allow a timed-out connection to be handled gracefully.
Allow a timed-out connection to be handled gracefully.

(Tested on Mac OS X.)

* context.c
  (read_from_connection): Handle the case when we are ready to 'read', but
  didn't write anything to deserve this response - it's likely we're about
  to get an EOF due to a received FIN.
  (process_connection): Handle POLLIN before POLLOUT so that if we're on a
  dead connection - we don't write doomed requests, and stop processing
  if we decide to reset the connection when reading.


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

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