opdenkamp/xbmc — comment on commit b4a1dcac8c9f979a71356d5b2054bdc0d3d111a2
File:  line 0
By EricV:

The code for socket is seriously broken :
1) In read, if you have a timeout set and select returns 0, then you should return the timeout error and not always break
2) In write, you should simply return the current number of byte wriiten as timeout is always0. And the correct error would be EWOUDLblock anyway.