Closed LarsFronius closed 10 years ago
Why was it reverted @evseevnn ?
I do not think that the code quality is satisfactory. Also is present a strange logic to determine the number of milliseconds have passed. She at least inaccurate.
To clarify why I did this: The stream timeout does not handle connect timeouts properly. I had a bunch of tests proving that. Also we got an actual error from socket_connect after some time, not an Exception that we can properly handle. So, the bit of logic seems to be the best practice work around for having this the connect timeout tweakable. The stream timeout is imho used when actual reads take too long (data transfer). I understand your further concerns and will patch.