Overview
Comment: | It seems glibc 2.12.1-r1 breaks getaddrinfo() and returns v6 only.
Use 127.0.0.1 instead of localhost to work around this bug (and to work Debug output showed that the linked-list returned by getaddrinfo() only |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
92c870f23df4e9ab6a41b563420f2985 |
User & Date: | js on 2010-09-15 15:19:05 |
Other Links: | manifest | tags |
Context
2010-09-15
| ||
15:31 | The metaclass of the metaclass is set by the runtime. check-in: 2fec3bda8c user: js tags: trunk | |
15:19 | It seems glibc 2.12.1-r1 breaks getaddrinfo() and returns v6 only. check-in: 92c870f23d user: js tags: trunk | |
15:01 | Rename __objc_gnu_init. check-in: eac76c7a30 user: js tags: trunk | |
Changes
Modified tests/OFTCPSocketTests.m from [bc5647851d] to [ea1bb29bbd].
︙ | ︙ | |||
42 43 44 45 46 47 48 | TEST(@"+[socket]", (server = [OFTCPSocket socket]) && (client = [OFTCPSocket socket])) msg = [OFString stringWithFormat: @"-[bindService:onNode:withFamily:] (port %d)", port]; TEST(msg, R([server bindService: service | | | | 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | TEST(@"+[socket]", (server = [OFTCPSocket socket]) && (client = [OFTCPSocket socket])) msg = [OFString stringWithFormat: @"-[bindService:onNode:withFamily:] (port %d)", port]; TEST(msg, R([server bindService: service onNode: @"127.0.0.1" withFamily: AF_INET])) TEST(@"-[listen]", R([server listen])) TEST(@"-[connectToService:onNode:]", R([client connectToService: service onNode: @"127.0.0.1"])) TEST(@"-[accept]", (accepted = [server accept])) TEST(@"-[remoteAddress]", [[accepted remoteAddress] isEqual: @"127.0.0.1"]) TEST(@"-[writeString:]", [client writeString: @"Hello!"]) |
︙ | ︙ |