From c9dd81852eb91bd077b86b21a5eb01923cb89570 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 10 Dec 2019 09:46:57 -0800 Subject: [PATCH] Increase timeout for Mares devices Linus came diagnosed the issue and came up with the patch, Jef suggested to use a 3 second timeout instead of 5. Reported-by: Tiberio Alunni Suggested-by: Linus Torvalds Suggested-by: Jef Driesen Signed-off-by: Dirk Hohndel --- src/mares_iconhd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mares_iconhd.c b/src/mares_iconhd.c index 2a714a4..5205991 100644 --- a/src/mares_iconhd.c +++ b/src/mares_iconhd.c @@ -482,8 +482,8 @@ mares_iconhd_device_open (dc_device_t **out, dc_context_t *context, dc_iostream_ goto error_free; } - // Set the timeout for receiving data (1000 ms). - status = dc_iostream_set_timeout (device->iostream, 1000); + // Set the timeout for receiving data (3 sec = 3000 ms). + status = dc_iostream_set_timeout (device->iostream, 3000); if (status != DC_STATUS_SUCCESS) { ERROR (context, "Failed to set the timeout."); goto error_free;