summaryrefslogtreecommitdiffstats
path: root/src/asr.c
diff options
context:
space:
mode:
authorGravatar Visual Ehrmanntraut2026-01-08 10:49:24 +0200
committerGravatar Visual Ehrmanntraut2026-02-16 17:21:58 +0200
commit405fcd17948ea4bd2571c76abd4451e8412b6260 (patch)
tree68f428f2cff3f5eabdb4531ec4a2440c8d266e77 /src/asr.c
parent61636353617271a7a25335111a8b4dfc7a70a139 (diff)
downloadidevicerestore-405fcd17948ea4bd2571c76abd4451e8412b6260.tar.gz
idevicerestore-405fcd17948ea4bd2571c76abd4451e8412b6260.tar.bz2
asr: Increase timeouts for slow devicesHEADmaster
e.g. emulated ones via ChefKiss Inferno
Diffstat (limited to 'src/asr.c')
-rw-r--r--src/asr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/asr.c b/src/asr.c
index e140980..66f65e7 100644
--- a/src/asr.c
+++ b/src/asr.c
@@ -50,7 +50,7 @@
int asr_open_with_timeout(idevice_t device, asr_client_t* asr, uint16_t port)
{
int i = 0;
- int attempts = 10;
+ int attempts = 30;
idevice_connection_t connection = NULL;
idevice_error_t device_error = IDEVICE_E_SUCCESS;
@@ -250,7 +250,7 @@ int asr_perform_validation(asr_client_t asr, ipsw_file_handle_t file)
}
if (packet == NULL) {
- if (attempts < 5) {
+ if (attempts < 10) {
logger(LL_INFO, "Retrying to receive validation packet... %d\n", attempts);
attempts++;
sleep(1);
@@ -366,7 +366,7 @@ int asr_send_payload(asr_client_t asr, ipsw_file_handle_t file)
data = (char*)malloc(ASR_PAYLOAD_CHUNK_SIZE + 20);
i = length;
- int retry = 3;
+ int retry = 10;
while(i > 0 && retry >= 0) {
uint32_t size = ASR_PAYLOAD_CHUNK_SIZE;
uint32_t sendsize = 0;