chiark / gitweb /
Portability: Fix assumption about read() and write() on connecting sockets
[adns] / regress / case-tcpbreakin.sys
CommitLineData
0ebff22d 1adnstest default
53077730 2:0x10000|12 2/6.45.18.172.in-addr.arpa
428bd682 3 start 957718868.938329
9ec92889 4 socket domain=AF_INET type=SOCK_DGRAM
428bd682 5 socket=4
6 +0.000161
7 fcntl fd=4 cmd=F_GETFL
8 fcntl=~O_NONBLOCK&...
9 +0.000059
10 fcntl fd=4 cmd=F_SETFL O_NONBLOCK|...
11 fcntl=OK
12 +0.000038
9ec92889 13 socket domain=AF_INET type=SOCK_STREAM
428bd682 14 socket=5
15 +0.001056
16 fcntl fd=5 cmd=F_GETFL
17 fcntl=~O_NONBLOCK&...
18 +0.000238
19 fcntl fd=5 cmd=F_SETFL O_NONBLOCK|...
20 fcntl=OK
21 +0.000055
22 connect fd=5 addr=172.18.45.6:53
23 connect=EINPROGRESS
24 +0.000723
25 select max=6 rfds=[4] wfds=[5] efds=[] to=13.997928
26 select=1 rfds=[] wfds=[5] efds=[]
27 +0.000536
777763cb
IJ
28 select max=6 rfds=null wfds=[5] efds=null to=0.000000
29 select=1 rfds=null wfds=[5] efds=null
30+0.000001
428bd682 31 read fd=5 buflen=1
32 read=EAGAIN
777763cb 33 +0.000117
428bd682 34 write fd=5
35 002a311f 01000001 00000000 00000136 02343502 31380331 37320769 6e2d6164
36 64720461 72706100 000c0001.
37 write=44
38 +0.001433
39 select max=6 rfds=[4,5] wfds=[] efds=[5] to=29.995841
40 select=1 rfds=[5] wfds=[] efds=[]
41 +0.000260
42 read fd=5 buflen=2
43 read=OK
44 00d7.
45 +0.000302
46 read fd=5 buflen=215
47 read=OK
48 311f8580 00010001 00030003 01360234 35023138 03313732 07696e2d 61646472
49 04617270 6100000c 0001c00c 000c0001 00015180 00250864 6176656e 616e740a
50 72656c61 74697669 74790867 7265656e 656e6403 6f726702 756b0002 34350231
51 38033137 3207696e 2d616464 72046172 70610000 02000100 01518000 06036e73
52 30c03fc0 5b000200 01000151 80000603 6e7331c0 3fc05b00 02000100 01518000
53 06036e73 32c03fc0 7d000100 01000151 800004ac 122d06c0 8f000100 01000151
54 800004ac 122d41c0 a1000100 01000151 800004ac 122d01.
55 +0.001364
56 sendto fd=4 addr=172.18.45.6:53
57 31200100 00010000 00000000 08646176 656e616e 740a7265 6c617469 76697479
58 08677265 656e656e 64036f72 6702756b 00000100 01.
59 sendto=EMSGSIZE
60 +0.000001
61 write fd=5
62 00353120 01000001 00000000 00000864 6176656e 616e740a 72656c61 74697669
63 74790867 7265656e 656e6403 6f726702 756b0000 010001.
64 write=EPIPE
65 +0.001233
66 close fd=5
67 close=OK
68 +0.000001
69 select max=5 rfds=[4] wfds=[] efds=[] to=0.000000
70 select=1 rfds=[] wfds=[] efds=[]
71 +0.000118
9ec92889 72 socket domain=AF_INET type=SOCK_STREAM
428bd682 73 socket=5
74 +0.001056
75 fcntl fd=5 cmd=F_GETFL
76 fcntl=~O_NONBLOCK&...
77 +0.000238
78 fcntl fd=5 cmd=F_SETFL O_NONBLOCK|...
79 fcntl=OK
80 +0.000055
81 connect fd=5 addr=172.18.45.6:53
82 connect=EINPROGRESS
83 +0.000723
84 select max=6 rfds=[4] wfds=[5] efds=[] to=13.997928
85 select=1 rfds=[] wfds=[5] efds=[]
86 +0.000536
777763cb
IJ
87 select max=6 rfds=null wfds=[5] efds=null to=0.000000
88 select=1 rfds=null wfds=[5] efds=null
89+0.000001
428bd682 90 read fd=5 buflen=1
91 read=EAGAIN
777763cb 92 +0.000722
428bd682 93 write fd=5
94 00353120 01000001 00000000 00000864 6176656e 616e740a 72656c61 74697669
95 74790867 7265656e 656e6403 6f726702 756b0000 010001.
96 write=44
97 +0.000001
98 select max=6 rfds=[4,5] wfds=[5] efds=[5] to=29.993649
99 select=1 rfds=[5] wfds=[] efds=[]
100 +0.000260
101 read fd=5 buflen=217
102 read=OK
103 00c5
104 31208580 00010001 00030003 08646176 656e616e 740a7265 6c617469 76697479
105 08677265 656e656e 64036f72 6702756b 00000100 01c00c00 01000100 01518000
106 04ac122d 060a7265 6c617469 76697479 08677265 656e656e 64036f72 6702756b
107 00000200 01000151 80000603 6e7330c0 45c04500 02000100 01518000 06036e73
108 31c045c0 45000200 01000151 80000603 6e7332c0 45c06b00 01000100 01518000
109 04ac122d 06c07d00 01000100 01518000 04ac122d 41c08f00 01000100 01518000
110 04ac122d 01.
111 +0.001171
112 read fd=5 buflen=217
113 read=EAGAIN
114 +0.000189
115 close fd=4
116 close=OK
117 +0.000352
118 close fd=5
119 close=OK
120 +0.000507