[Issue 2835] std.socket.TcpSocket.connect doesn't actually connect

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Apr 15 10:39:55 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2835


unknown at simplemachines.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |unknown at simplemachines.org
            Summary|std.socket.TcpSocket.accept |std.socket.TcpSocket.connect
                   |blocks forever              |doesn't actually connect




------- Comment #2 from unknown at simplemachines.org  2009-04-15 12:40 -------
Just a drive-by.  Simplified testcase:

---
import std.socket, std.stdio;

void main()
{
        // Replace 12345 with any unused port.
        auto address = new InternetAddress("127.0.0.1", 12345);

        try
        {
                auto client = new TcpSocket();
                client.connect(address);

                writefln("Where's my error?");
        }
        catch (SocketException)
                writefln("Success");
}
---

Testcase succeeds on Windows, but not Linux, using 2.028 and CentOS 5.3.  Most
likely, incorrect size of the sockaddr_in struct or something.

-[Unknown]


-- 



More information about the Digitalmars-d-bugs mailing list