bind9/bin/tests/system/tcp
Michal Nowak 658cae9fad
Bump socket.create_connection() timeout to 10 seconds
The tcp Pytest on OpenBSD fairly reliably fails when receive_tcp()
on a socket is attempted:

    >           (response, rtime) = dns.query.receive_tcp(sock, timeout())

    tests-tcp.py:50:
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
    /usr/local/lib/python3.9/site-packages/dns/query.py:659: in receive_tcp
        ldata = _net_read(sock, 2, expiration)
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

    sock = <socket.socket [closed] fd=-1, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>
    count = 2, expiration = 1662719959.8106785

        def _net_read(sock, count, expiration):
            """Read the specified number of bytes from sock.  Keep trying until we
            either get the desired amount, or we hit EOF.
            A Timeout exception will be raised if the operation is not completed
            by the expiration time.
            """
            s = b''
            while count > 0:
                try:
    >               n = sock.recv(count)
    E               socket.timeout: timed out

This is because the socket is already closed.

Bump the socket connection timeout to 10 seconds.
2022-09-15 11:13:36 +02:00
..
ans6 Auto-format Python files with black 2022-06-08 10:28:08 +02:00
ns1 Use DEFAULT_HMAC for rndc 2022-07-07 10:11:42 +10:00
ns2 Use DEFAULT_HMAC for rndc 2022-07-07 10:11:42 +10:00
ns3 Use DEFAULT_HMAC for rndc 2022-07-07 10:11:42 +10:00
ns4 Use DEFAULT_HMAC for rndc 2022-07-07 10:11:42 +10:00
ns5 Use DEFAULT_HMAC for rndc 2022-07-07 10:11:42 +10:00
ns7 Use DEFAULT_HMAC for rndc 2022-07-07 10:11:42 +10:00
1996-alloc_dnsbuf-crash-test.pkt Multiply 1996-alloc_dnsbuf-crash-test.pkt by 300000 via TCP 2020-09-01 16:16:02 +02:00
clean.sh Add TCP garbage system test 2022-02-17 20:39:55 +01:00
setup.sh Add TCP garbage system test 2022-02-17 20:39:55 +01:00
tests-tcp.py Bump socket.create_connection() timeout to 10 seconds 2022-09-15 11:13:36 +02:00
tests.sh Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00