Bug 20313 – Inconsistent behavior of wouldHaveBlocked on Windows

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2019-10-24T11:49:22Z
Last change time
2019-10-31T14:56:36Z
Keywords
pull
Assigned to
No Owner
Creator
Adam D. Ruppe

Comments

Comment #0 by destructionator — 2019-10-24T11:49:22Z
On Linux, socket timeouts trigger wouldHaveBlocked but on Windows it does not, and none of the std.socket functions offer a way to check that error code.
Comment #1 by dlang-bot — 2019-10-24T11:50:35Z
@adamdruppe updated dlang/phobos pull request #7250 "handle timeout on Windows the same as on Linux - no other way in curr…" fixing this issue: - Fix Issue 20313 - test timeout error condition https://github.com/dlang/phobos/pull/7250
Comment #2 by dlang-bot — 2019-10-31T14:56:36Z
dlang/phobos pull request #7250 "handle timeout on Windows the same as on Linux - no other way in curr…" was merged into master: - 4c59d7f73b2784faf387932a7c24bbd4c8656076 by Adam D. Ruppe: Fix Issue 20313 - test timeout error condition https://github.com/dlang/phobos/pull/7250