AnyEvent::Socket - Hosts file issue on windows

Cotter, Dan Dan.Cotter at auspost.com.au
Fri Oct 21 03:44:02 CEST 2022


Hi,

In AnyEvent::Socket _parse_hosts there is a split of the hosts file on \n. But the file is opened by AnyEvent::IO as raw.

As a result, on windows \r remains in the host name of the last host on each line, making them fail to be looked up.

Suggested fix is to change _parse_hosts split from \n to \r?\n

Thanks,
Dan


Dan Cotter
Engineering Design & Reliability
Engineering Services
Australia Post
​
5 Birdwood Cres.
​ REDBANK
​ QLD
​ 4301
​
T  0433599611
​
​​M  0433 599 611
​
​E  Dan.Cotter at auspost.com.au
​
Australia Post acknowledges the Traditional Custodians
​of the land on which we operate, live and gather as
​a team. We recognise their continuing connection
​to land, water and community. We pay respect to Elders
​past, present and emerging.

Australia Post is committed to providing our customers with excellent service. If we can assist you in any way please telephone 13 13 18 or visit our website.

The information contained in this email communication may be proprietary, confidential or legally professionally privileged. It is intended exclusively for the individual or entity to which it is addressed. You should only read, disclose, re-transmit, copy, distribute, act in reliance on or commercialise the information if you are authorised to do so. Australia Post does not represent, warrant or guarantee that the integrity of this email communication has been maintained nor that the communication is free of errors, virus or interference.

If you are not the addressee or intended recipient please notify us by replying direct to the sender and then destroy any electronic or paper copy of this message. Any views expressed in this email communication are taken to be those of the individual sender, except where the sender specifically attributes those views to Australia Post and is authorised to do so.

Please consider the environment before printing this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schmorp.de/pipermail/anyevent/attachments/20221021/88eadd51/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image495190.png
Type: image/png
Size: 2901 bytes
Desc: image495190.png
URL: <http://lists.schmorp.de/pipermail/anyevent/attachments/20221021/88eadd51/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image570276.png
Type: image/png
Size: 4558 bytes
Desc: image570276.png
URL: <http://lists.schmorp.de/pipermail/anyevent/attachments/20221021/88eadd51/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image172097.png
Type: image/png
Size: 179 bytes
Desc: image172097.png
URL: <http://lists.schmorp.de/pipermail/anyevent/attachments/20221021/88eadd51/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image516601.png
Type: image/png
Size: 81857 bytes
Desc: image516601.png
URL: <http://lists.schmorp.de/pipermail/anyevent/attachments/20221021/88eadd51/attachment-0011.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image449327.png
Type: image/png
Size: 6119 bytes
Desc: image449327.png
URL: <http://lists.schmorp.de/pipermail/anyevent/attachments/20221021/88eadd51/attachment-0012.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image691225.png
Type: image/png
Size: 9447 bytes
Desc: image691225.png
URL: <http://lists.schmorp.de/pipermail/anyevent/attachments/20221021/88eadd51/attachment-0013.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image709560.png
Type: image/png
Size: 6902 bytes
Desc: image709560.png
URL: <http://lists.schmorp.de/pipermail/anyevent/attachments/20221021/88eadd51/attachment-0014.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image088372.png
Type: image/png
Size: 6979 bytes
Desc: image088372.png
URL: <http://lists.schmorp.de/pipermail/anyevent/attachments/20221021/88eadd51/attachment-0015.png>


More information about the anyevent mailing list