0.6.0 Release Notes
Bug fixes for connection handling.
This change prevents check_url from hanging >24 hours if a network error occurs.
If no data is received after TEST_BIGDATA_TIMEOUT is reached, check_url and _download will independently attempt to retrieve the information again up to TEST_BIGDATA_RETRY_MAX times, at intervals of TEST_BIGDATA_RETRY_DELAY seconds. If the data is not retrievable retry raises the original exception (killing the test or program unless you handle it with a try/except block...)
Applied to check_url
and _download
requests is "optional" so all exceptions are trapped (why is it optional again?)
Bug fix: check_url did not define a timeout
New options:
TEST_BIGDATA_TIMEOUT
: How long to wait after no bytes have been TX/RX
TEST_BIGDATA_CHUNK_SIZE
: How many bytes to read/write at once
TEST_BIGDATA_RETRY_MAX
: Number of attempts to retry an operation
TEST_BIGDATA_RETRY_DELAY
: Number of seconds to wait between retry attempts