to do ARC verification. The Authentication-Results: header line added
by the configuration then had no ARC item.
+JH/48 Bug 2784: fix shutdown=no in the ${readsocket) expansion item. Previously
+ an incorrect mode was used for reading the result, resulting in it being
+ ignored.
+
Exim version 4.92
-----------------
if (!cctx->tls_ctx)
#endif
{
- FILE * fp = fdopen(cctx->sock, lf.do_shutdown ? "rb" : "wb");
+ FILE * fp = fdopen(cctx->sock, "rb");
ALARM(timeout);
yield = cat_file(fp, NULL, eol);
}
#
# Tests of IPv4 sockets
#
-server PORT_S 17
+server PORT_S 18
QUERY-1
>LF>ANSWER-1
>*eof
QUERY-10
>LF>ANSWER-10
>*eof
->LF>ANSWER-11
+>LF>ANSWER-11a
+>*eof
+QUERY-11
+>LF>ANSWER-11b
>*eof
QUERY-12
>>ANSWER-12\x0d\x0aANSWER-12\x0d\x0a
8 read timed out >>${readsocket{inet:127.0.0.1:PORT_S}{QUERY-8\n}{1s}}<<
9 sock error >>${readsocket{inet:127.0.0.1:PORT_S}{QUERY-9\n}{1s}{}{sock error}}<<
10 ANSWER-10\\n >>${readsocket{inet:badloop:PORT_S}{QUERY-10\n}}<<
-11 ANSWER-11 >>${readsocket{inet:thisloop:PORT_S}{QUERY-11\n}{2s:shutdown=no}}<<
+11 ANSWER-11a >>${readsocket{inet:thisloop:PORT_S}{QUERY-11\n}{2s:shutdown=no}}<<
+11 ANSWER-11b >>${readsocket{inet:thisloop:PORT_S}{QUERY-11\n}{2s:shutdown=no}}<<
eol-replacement arg
12 ANSWER-12x2 (no arg) >>${escape:${readsocket{inet:127.0.0.1:PORT_S}{QUERY-12\n}{2s}}}<<
> 9 sock error >>sock error<<
> 10 ANSWER-10\n >>ANSWER-10
<<
-> 11 ANSWER-11 >><<
+> 11 ANSWER-11a >>ANSWER-11a
+<<
+> 11 ANSWER-11b >>ANSWER-11b
+<<
>
> eol-replacement arg
> 12 ANSWER-12x2 (no arg) >>ANSWER-12\r\nANSWER-12\r\n<<
>*eof
Listening on port 1224 ...
Connection request from [ip4.ip4.ip4.ip4]
->LF>ANSWER-11
+>LF>ANSWER-11a
+>*eof
+Listening on port 1224 ...
+Connection request from [ip4.ip4.ip4.ip4]
+QUERY-11
+>LF>ANSWER-11b
>*eof
Listening on port 1224 ...
Connection request from [127.0.0.1]