Support connection timeouts

José Joaquín Atria
2023-02-01T10:52:07Z

Although the original Perl library supports connection timeouts, support in Raku is made more difficult because the underlying IO::Socket::SSL and IO::Socket::INET classes do not provide OOTB support for this feature.

The HTTP::UserAgent Raku library currently is on a similar dilemma, in that it passes those attributes to the socket libraries, but these ignore them.

If we were to add timeouts on this side of the socket divide, it's not clear to me what the meaning of the timeout should be. Is it the time before a connection is initiated? Fully complete? Before a message (or chunk of a message) is received?