From 1cce3af8c29cfa691a3e28c79227f358e5a7b3b9 Mon Sep 17 00:00:00 2001 From: Philip Hazel Date: Tue, 18 Apr 2006 11:13:19 +0000 Subject: Extend ${readsocket to TCP sockets (modified John Jetmore's patch). --- test/stdout/0373 | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ test/stdout/1010 | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 115 insertions(+) create mode 100644 test/stdout/1010 (limited to 'test/stdout') diff --git a/test/stdout/0373 b/test/stdout/0373 index 6cb4425eb..dabc1f5a7 100644 --- a/test/stdout/0373 +++ b/test/stdout/0373 @@ -13,6 +13,19 @@ > 9 >>sock error<< > 451 Temporary local problem - please try later +> 1 >>ANSWER-1 +<< +> 2 >>ANSWER-2<< +> 3 >>ANSWER-3*EOL*<< +> 4 >>ANSWER-4*EOL*<< +> 5 >>ANSWER-5<< +> 6 >><< +> 7 >><< +> Failed: socket read timed out +> 9 >>sock error<< +> 10 >>ANSWER-10 +<< +> ******** SERVER ******** Listening on TESTSUITE/test-socket ... @@ -61,3 +74,50 @@ Connection request QUERY-ACL *sleep 3 End of script +Listening on port 1224 ... +Connection request from [ip4.ip4.ip4.ip4] +QUERY-1 +>LF>ANSWER-1 +>*eof +Listening on port 1224 ... +Connection request from [127.0.0.1] +QUERY-2 +>>ANSWER-2 +>*eof +Listening on port 1224 ... +Connection request from [127.0.0.1] +QUERY-3 +>LF>ANSWER-3 +>*eof +Listening on port 1224 ... +Connection request from [127.0.0.1] +QUERY-4 +>LF>ANSWER-4 +>*eof +Listening on port 1224 ... +Connection request from [127.0.0.1] +>>ANSWER-5 +>*eof +Listening on port 1224 ... +Connection request from [127.0.0.1] +*sleep 1 +>*eof +Listening on port 1224 ... +Connection request from [127.0.0.1] +>*eof +Listening on port 1224 ... +Connection request from [127.0.0.1] +QUERY-8 +*sleep 2 +Expected EOF read from client +Listening on port 1224 ... +Connection request from [127.0.0.1] +QUERY-9 +*sleep 2 +Expected EOF read from client +Listening on port 1224 ... +Connection request from [127.0.0.1] +QUERY-10 +>LF>ANSWER-10 +>*eof +End of script diff --git a/test/stdout/1010 b/test/stdout/1010 new file mode 100644 index 000000000..cacc1541b --- /dev/null +++ b/test/stdout/1010 @@ -0,0 +1,55 @@ +> 1 >>ANSWER-1 +<< +> 2 >>ANSWER-2<< +> 3 >>ANSWER-3*EOL*<< +> 4 >>ANSWER-4*EOL*<< +> 5 >>ANSWER-5<< +> 6 >><< +> 7 >><< +> Failed: socket read timed out +> 9 >>sock error<< +> + +******** SERVER ******** +Listening on port 1224 ... +Connection request from [::1] +QUERY-1 +>LF>ANSWER-1 +>*eof +Listening on port 1224 ... +Connection request from [::1] +QUERY-2 +>>ANSWER-2 +>*eof +Listening on port 1224 ... +Connection request from [::1] +QUERY-3 +>LF>ANSWER-3 +>*eof +Listening on port 1224 ... +Connection request from [::1] +QUERY-4 +>LF>ANSWER-4 +>*eof +Listening on port 1224 ... +Connection request from [::1] +>>ANSWER-5 +>*eof +Listening on port 1224 ... +Connection request from [::1] +*sleep 1 +>*eof +Listening on port 1224 ... +Connection request from [::1] +>*eof +Listening on port 1224 ... +Connection request from [::1] +QUERY-8 +*sleep 2 +Expected EOF read from client +Listening on port 1224 ... +Connection request from [::1] +QUERY-9 +*sleep 2 +Expected EOF read from client +End of script -- cgit v1.2.3