Better debug diagnosis of malformed IPv4 addresses.
[users/jgh/exim.git] / test / scripts / 0000-Basic / 0373
1 # ${readsocket
2 need_ipv4
3 #
4 exim -be
5 1 >>${readsocket{DIR/test-socket}{QUERY-1\n}}<<
6 2 ${if exists{DIR/test-socket}\
7   {>>${readsocket{DIR/test-socket}{QUERY-1\n}}<<}\
8   {++ no socket ++}} 
9 ****
10 #
11 # Note the difference between:
12 #   >*eof      => close the connection
13 #   *eof       => expect to read EOF from client
14 #
15 server DIR/test-socket 9
16 QUERY-1
17 >LF>ANSWER-1
18 >*eof
19 QUERY-2
20 >>ANSWER-2
21 >*eof
22 QUERY-3
23 >LF>ANSWER-3
24 >*eof
25 QUERY-4
26 >LF>ANSWER-4
27 >*eof
28 >>ANSWER-5
29 >*eof
30 *sleep 1
31 >*eof
32 >*eof
33 QUERY-8
34 *sleep 2
35 *eof
36 QUERY-9
37 *sleep 2
38 ****
39 millisleep 500
40 exim -be
41 1 >>${readsocket{DIR/test-socket}{QUERY-1\n}}<<
42 2 >>${readsocket{DIR/test-socket}{QUERY-2\n}}<<
43 3 >>${readsocket{DIR/test-socket}{QUERY-3\n}{2s}{*EOL*}}<<
44 4 >>${readsocket{DIR/test-socket}{QUERY-4\n}{2s}{*EOL*}{sock error}}<<
45 5 >>${readsocket{DIR/test-socket}{}}<<
46 6 >>${readsocket{DIR/test-socket}{QUERY-6\n}}<<
47 7 >>${readsocket{DIR/test-socket}{QUERY-7\n}{1s}{}{sock error}}<<
48 8 >>${readsocket{DIR/test-socket}{QUERY-8\n}{1s}}<<
49 9 >>${readsocket{DIR/test-socket}{QUERY-9\n}{1s}{}{sock error}}<<
50 ****
51 server DIR/test-socket
52 QUERY-ACL
53 *sleep 3
54 ****
55 exim -odq -bs -oMa V4NET.0.0.0
56 quit
57 ****