From 4dd983542e6cdae7f4a0c5e81f11aa69b56c8250 Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Mon, 2 Sep 2013 14:58:42 +0200 Subject: [PATCH] Increase timeout for detecting disconnected clients to avoid problems when there are many thousands of books on the device. --- src/calibre/devices/smart_device_app/driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/devices/smart_device_app/driver.py b/src/calibre/devices/smart_device_app/driver.py index f8d679152d..33b3b6a74c 100644 --- a/src/calibre/devices/smart_device_app/driver.py +++ b/src/calibre/devices/smart_device_app/driver.py @@ -213,7 +213,7 @@ class SMART_DEVICE_APP(DeviceConfig, DevicePlugin): # Some network protocol constants BASE_PACKET_LEN = 4096 PROTOCOL_VERSION = 1 - MAX_CLIENT_COMM_TIMEOUT = 60.0 # Wait at most N seconds for an answer + MAX_CLIENT_COMM_TIMEOUT = 300.0 # Wait at most N seconds for an answer MAX_UNSUCCESSFUL_CONNECTS = 5 SEND_NOOP_EVERY_NTH_PROBE = 5