[Issue 17554] New: non-blocking connect doesn't work for TcpSocket on win
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Jun 25 14:09:10 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=17554
Issue ID: 17554
Summary: non-blocking connect doesn't work for TcpSocket on win
Product: D
Version: D2
Hardware: All
OS: Windows
Status: NEW
Severity: major
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: temtaime at gmail.com
auto s = new TcpSocket;
s.blocking = false;
s.connect(addr);
ubyte[1234] tmp;
auto len = s.receive(arr);
assert(len != Socket.ERROR || wouldHaveBlocked, s.getErrorText);
fails with "the operation was completed successfully"
and passes on linux
--
More information about the Digitalmars-d-bugs
mailing list