use an IPv4 address instead of localhost
Depending on the host OS localhost might resolve to something we can't handle properly. In a FreeBSD jail this started to behave oddly. There is no point to force AF_INET6 for this test. open("/etc/hosts",O_CLOEXEC,0666) = 3 (0x3) fstat(3,{ mode=-rw-r--r-- ,inode=12621,size=1138,blksize=4096 }) = 0 (0x0) read(3,"# $FreeBSD: src/etc/hosts,v 1.16"...,4096) = 1138 (0x472) read(3,0x80282e000,4096) = 0 (0x0) close(3) = 0 (0x0) __sysctl(0x7fffffffaff0,0x4,0x0,0x7fffffffb070,0x0,0x0) = 0 (0x0) __sysctl(0x7fffffffaff0,0x4,0x82b0aa300,0x7fffffffb070,0x0,0x0) = 0 (0x0) socket(PF_INET6,0x10000002,17) = 3 (0x3) connect(3,{ AF_INET6 [::1]:1 },28) = 0 (0x0) getsockname(3,{ AF_INET6 [2a01:4f8:150:70c4::5:2]:55378 },0x7fffffffafec) = 0 (0x0) ioctl(3,SIOCGIFAFLAG_IN6,0xffffaec8) ERR#6 'Device not configured' close(3) = 0 (0x0) socket(PF_INET6,0x10000002,17) = 3 (0x3) connect(3,{ AF_INET6 [::1]:1 },28) = 0 (0x0) getsockname(3,{ AF_INET6 [2a01:4f8:150:70c4::5:2]:14967 },0x7fffffffafec) = 0 (0x0) ioctl(3,SIOCGIFAFLAG_IN6,0xffffaec8) ERR#6 'Device not configured' close(3) = 0 (0x0) socket(PF_INET6,0x10000002,17) = 3 (0x3) connect(3,{ AF_INET6 [::1]:1 },28) = 0 (0x0) getsockname(3,{ AF_INET6 [2a01:4f8:150:70c4::5:2]:39503 },0x7fffffffafec) = 0 (0x0) ioctl(3,SIOCGIFAFLAG_IN6,0xffffaec8) ERR#6 'Device not configured' close(3) = 0 (0x0)
This commit is contained in:
parent
3f47d2f6b0
commit
439f34e675
|
@ -83,7 +83,7 @@ TestCase subclass: SIPUdpTransportTest [
|
|||
datagram address: target address.
|
||||
datagram data: 'foooo'.
|
||||
|
||||
transp := SIPUdpTransport startOn: 'localhost'.
|
||||
transp := SIPUdpTransport startOn: '127.0.0.1'.
|
||||
transp start.
|
||||
transp queueDatagram: datagram.
|
||||
|
||||
|
|
Reference in New Issue