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