-----
- Better handling of OS level errors on read or write.
- Writing a single byte to the raw stream raises an exception so a buffer of odd length no more loops on ``flush()``.
- There is now maximum limit for bytes to be written by the raw stream so at least something is written (see http://bugs.python.org/issue11395).