This PR tries to make reads on Windows behave like on Unix: read will return with available data as soon as possible instead of trying to fill the entire buffer and then time out if not enough data is available.
Sadly, wine doesn't seem to emulate the time-out behaviour properly. It looks like u32::MAX has no special meaning, so read calls block forever instead of returning as soon as possible like they should :(
This PR tries to make reads on Windows behave like on Unix: read will return with available data as soon as possible instead of trying to fill the entire buffer and then time out if not enough data is available.
Sadly, wine doesn't seem to emulate the time-out behaviour properly. It looks like
u32::MAX
has no special meaning, so read calls block forever instead of returning as soon as possible like they should :(