Portability: Fix assumption about read() and write() on connecting sockets
[adns] / regress / case-2ndservtcp.sys
1 adnstest 2ndserver
2 :0x0|12 trunc.test.iwj.relativity.greenend.org.uk
3 start 940100083.268555
4 socket domain=AF_INET type=SOCK_DGRAM
5 socket=4
6 +0.000169
7 fcntl fd=4 cmd=F_GETFL
8 fcntl=~O_NONBLOCK&...
9 +0.000053
10 fcntl fd=4 cmd=F_SETFL O_NONBLOCK|...
11 fcntl=OK
12 +0.000040
13 sendto fd=4 addr=172.18.45.36:53
14 311f0100 00010000 00000000 05747275 6e630474 65737403 69776a0a 72656c61
15 74697669 74790867 7265656e 656e6403 6f726702 756b0000 0c0001.
16 sendto=59
17 +0.001167
18 select max=5 rfds=[4] wfds=[] efds=[] to=1.998833
19 select=0 rfds=[] wfds=[] efds=[]
20 +2.-01463
21 select max=5 rfds=[4] wfds=[] efds=[] to=0.000296
22 select=0 rfds=[] wfds=[] efds=[]
23 +0.009912
24 sendto fd=4 addr=172.18.45.6:53
25 311f0100 00010000 00000000 05747275 6e630474 65737403 69776a0a 72656c61
26 74697669 74790867 7265656e 656e6403 6f726702 756b0000 0c0001.
27 sendto=59
28 +0.001357
29 select max=5 rfds=[4] wfds=[] efds=[] to=1.998643
30 select=1 rfds=[4] wfds=[] efds=[]
31 +0.000126
32 recvfrom fd=4 buflen=512
33 recvfrom=OK addr=172.18.45.6:53
34 311f8380 00010008 00000000 05747275 6e630474 65737403 69776a0a 72656c61
35 74697669 74790867 7265656e 656e6403 6f726702 756b0000 0c0001c0 0c000c00
36 01000000 3c004704 6c6f6e67 06646f6d 61696e02 746f0566 6f726365 0a747275
37 6e636174 696f6e01 30047465 73740369 776a0a72 656c6174 69766974 79086772
38 65656e65 6e64036f 72670275 6b00c00c 000c0001 0000003c 0024046c 6f6e6706
39 646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0131 c069c00c
40 000c0001 0000003c 0024046c 6f6e6706 646f6d61 696e0274 6f05666f 7263650a
41 7472756e 63617469 6f6e0132 c069c00c 000c0001 0000003c 0024046c 6f6e6706
42 646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0133 c069c00c
43 000c0001 0000003c 0024046c 6f6e6706 646f6d61 696e0274 6f05666f 7263650a
44 7472756e 63617469 6f6e0134 c069c00c 000c0001 0000003c 0024046c 6f6e6706
45 646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0135 c069c00c
46 000c0001 0000003c 0024046c 6f6e6706 646f6d61 696e0274 6f05666f 7263650a
47 7472756e 63617469 6f6e0136 c069c00c 000c0001 0000003c 0024046c 6f6e6706
48 646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0137 c069.
49 +0.002022
50 socket domain=AF_INET type=SOCK_STREAM
51 socket=5
52 +0.000905
53 fcntl fd=5 cmd=F_GETFL
54 fcntl=~O_NONBLOCK&...
55 +0.000041
56 fcntl fd=5 cmd=F_SETFL O_NONBLOCK|...
57 fcntl=OK
58 +0.000038
59 connect fd=5 addr=172.18.45.36:53
60 connect=EINPROGRESS
61 +0.000162
62 recvfrom fd=4 buflen=512
63 recvfrom=EAGAIN
64 +0.000062
65 select max=6 rfds=[4] wfds=[5] efds=[] to=13.996770
66 select=1 rfds=[] wfds=[5] efds=[]
67 +1.-14443
68 select max=6 rfds=null wfds=[5] efds=null to=0.000000
69 select=1 rfds=null wfds=[5] efds=null
70 +0.000001
71 read fd=5 buflen=1
72 read=EHOSTUNREACH
73 +0.000192
74 close fd=5
75 close=OK
76 +0.000146
77 select max=5 rfds=[4] wfds=[] efds=[] to=0.000000
78 select=0 rfds=[] wfds=[] efds=[]
79 +0.000001
80 socket domain=AF_INET type=SOCK_STREAM
81 socket=5
82 +0.000678
83 fcntl fd=5 cmd=F_GETFL
84 fcntl=~O_NONBLOCK&...
85 +0.000041
86 fcntl fd=5 cmd=F_SETFL O_NONBLOCK|...
87 fcntl=OK
88 +0.000039
89 connect fd=5 addr=172.18.45.6:53
90 connect=EINPROGRESS
91 +0.000455
92 select max=6 rfds=[4] wfds=[5] efds=[] to=13.998787
93 select=1 rfds=[] wfds=[5] efds=[]
94 +0.000135
95 select max=6 rfds=null wfds=[5] efds=null to=0.000000
96 select=1 rfds=null wfds=[5] efds=null
97 +0.000001
98 read fd=5 buflen=1
99 read=EAGAIN
100 +0.000061
101 write fd=5
102 003b311f 01000001 00000000 00000574 72756e63 04746573 74036977 6a0a7265
103 6c617469 76697479 08677265 656e656e 64036f72 6702756b 00000c00 01.
104 write=61
105 +0.004082
106 select max=6 rfds=[4,5] wfds=[] efds=[5] to=29.005381
107 select=1 rfds=[5] wfds=[] efds=[]
108 +0.000149
109 read fd=5 buflen=2
110 read=OK
111 0638.
112 +0.000210
113 read fd=5 buflen=1592
114 read=OK
115 311f8580 0001001e 00010001 05747275 6e630474 65737403 69776a0a 72656c61
116 74697669 74790867 7265656e 656e6403 6f726702 756b0000 0c0001c0 0c000c00
117 01000000 3c004704 6c6f6e67 06646f6d 61696e02 746f0566 6f726365 0a747275
118 6e636174 696f6e01 30047465 73740369 776a0a72 656c6174 69766974 79086772
119 65656e65 6e64036f 72670275 6b00c00c 000c0001 0000003c 0024046c 6f6e6706
120 646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0131 c069c00c
121 000c0001 0000003c 0024046c 6f6e6706 646f6d61 696e0274 6f05666f 7263650a
122 7472756e 63617469 6f6e0132 c069c00c 000c0001 0000003c 0024046c 6f6e6706
123 646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0133 c069c00c
124 000c0001 0000003c 0024046c 6f6e6706 646f6d61 696e0274 6f05666f 7263650a
125 7472756e 63617469 6f6e0134 c069c00c 000c0001 0000003c 0024046c 6f6e6706
126 646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0135 c069c00c
127 000c0001 0000003c 0024046c 6f6e6706 646f6d61 696e0274 6f05666f 7263650a
128 7472756e 63617469 6f6e0136 c069c00c 000c0001 0000003c 0024046c 6f6e6706
129 646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0137 c069c00c
130 000c0001 0000003c 0024046c 6f6e6706 646f6d61 696e0274 6f05666f 7263650a
131 7472756e 63617469 6f6e0138 c069c00c 000c0001 0000003c 0024046c 6f6e6706
132 646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0139 c069c00c
133 000c0001 0000003c 0025046c 6f6e6706 646f6d61 696e0274 6f05666f 7263650a
134 7472756e 63617469 6f6e0231 30c069c0 0c000c00 01000000 3c002504 6c6f6e67
135 06646f6d 61696e02 746f0566 6f726365 0a747275 6e636174 696f6e02 3131c069
136 c00c000c 00010000 003c0025 046c6f6e 6706646f 6d61696e 02746f05 666f7263
137 650a7472 756e6361 74696f6e 023132c0 69c00c00 0c000100 00003c00 25046c6f
138 6e670664 6f6d6169 6e02746f 05666f72 63650a74 72756e63 6174696f 6e023133
139 c069c00c 000c0001 0000003c 0025046c 6f6e6706 646f6d61 696e0274 6f05666f
140 7263650a 7472756e 63617469 6f6e0231 34c069c0 0c000c00 01000000 3c002504
141 6c6f6e67 06646f6d 61696e02 746f0566 6f726365 0a747275 6e636174 696f6e02
142 3135c069 c00c000c 00010000 003c0025 046c6f6e 6706646f 6d61696e 02746f05
143 666f7263 650a7472 756e6361 74696f6e 023136c0 69c00c00 0c000100 00003c00
144 25046c6f 6e670664 6f6d6169 6e02746f 05666f72 63650a74 72756e63 6174696f
145 6e023137 c069c00c 000c0001 0000003c 0025046c 6f6e6706 646f6d61 696e0274
146 6f05666f 7263650a 7472756e 63617469 6f6e0231 38c069c0 0c000c00 01000000
147 3c002504 6c6f6e67 06646f6d 61696e02 746f0566 6f726365 0a747275 6e636174
148 696f6e02 3139c069 c00c000c 00010000 003c0025 046c6f6e 6706646f 6d61696e
149 02746f05 666f7263 650a7472 756e6361 74696f6e 023230c0 69c00c00 0c000100
150 00003c00 25046c6f 6e670664 6f6d6169 6e02746f 05666f72 63650a74 72756e63
151 6174696f 6e023231 c069c00c 000c0001 0000003c 0025046c 6f6e6706 646f6d61
152 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0232 32c069c0 0c000c00
153 01000000 3c002504 6c6f6e67 06646f6d 61696e02 746f0566 6f726365 0a747275
154 6e636174 696f6e02 3233c069 c00c000c 00010000 003c0025 046c6f6e 6706646f
155 6d61696e 02746f05 666f7263 650a7472 756e6361 74696f6e 023234c0 69c00c00
156 0c000100 00003c00 25046c6f 6e670664 6f6d6169 6e02746f 05666f72 63650a74
157 72756e63 6174696f 6e023235 c069c00c 000c0001 0000003c 0025046c 6f6e6706
158 646f6d61 696e0274 6f05666f 7263650a 7472756e 63617469 6f6e0232 36c069c0
159 0c000c00 01000000 3c002504 6c6f6e67 06646f6d 61696e02 746f0566 6f726365
160 0a747275 6e636174 696f6e02 3237c069 c00c000c 00010000 003c0025 046c6f6e
161 6706646f 6d61696e 02746f05 666f7263 650a7472 756e6361 74696f6e 023238c0
162 69c00c00 0c000100 00003c00 25046c6f 6e670664 6f6d6169 6e02746f 05666f72
163 63650a74 72756e63 6174696f 6e023239 c069c069 00020001 0000003c 0006036e
164 7330c072 036e7330 c0720001 00010001 51800004 ac122d06.
165 +0.006071
166 read fd=5 buflen=1594
167 read=EAGAIN
168 +0.005347
169 close fd=4
170 close=OK
171 +0.004675
172 close fd=5
173 close=OK
174 +0.000433