Mailing List Archive

[Bug 2784] New: readsocket doesn't work as expected
https://bugs.exim.org/show_bug.cgi?id=2784

Bug ID: 2784
Summary: readsocket doesn't work as expected
Product: Exim
Version: 4.94
Hardware: x86-64
OS: FreeBSD
Status: NEW
Severity: bug
Priority: medium
Component: String expansion
Assignee: unallocated@exim.org
Reporter: adsh@univ.kiev.ua
CC: exim-dev@exim.org

Exim FreeBSD port exim-4.94.2.

exim -be '${readsocket{inet:ukr.net:80}{GET / HTTP/1.1\r\nHost:
ukr.net\r\n\r\n}{4s:shutdown=no}{\n}{socket failure}}'

(blank line in response when shutdown=no)

exim -be '${readsocket{inet:ukr.net:80}{GET / HTTP/1.1\r\nHost:
ukr.net\r\n\r\n}{4s}{\n}{socket failure}}'
HTTP/1.1 301 Moved Permanently
Server: nginx
...

(skipped - it works as expected when shutdown=yes)

exim -be '${readsocket{inet:i.ua:80}{GET / HTTP/1.1\r\nHost:
i.ua\r\n\r\n}{4s:shutdown=no}{\n}{socket failure}}'

(blank line in response when shutdown=no)

exim -be '${readsocket{inet:i.ua:80}{GET / HTTP/1.1\r\nHost:
i.ua\r\n\r\n}{4s}{\n}{socket failure}}'

(blank line in response when shutdown=yes)

--
You are receiving this mail because:
You are on the CC list for the bug.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##