File transfer example
This commit is contained in:
parent
8aa2f8613a
commit
aa9d0876d7
@ -20,7 +20,7 @@ import RNS.vendor.umsgpack as umsgpack
|
||||
APP_NAME = "example_utilitites"
|
||||
|
||||
# We'll also define a default timeout, in seconds
|
||||
APP_TIMEOUT = 5.0
|
||||
APP_TIMEOUT = 10.0
|
||||
|
||||
##########################################################
|
||||
#### Server Part #########################################
|
||||
|
@ -29,7 +29,7 @@ class Link:
|
||||
# TODO: This should not be hardcoded,
|
||||
# but calculated from something like
|
||||
# first-hop RTT latency and distance
|
||||
DEFAULT_TIMEOUT = 5
|
||||
DEFAULT_TIMEOUT = 10.0
|
||||
TIMEOUT_FACTOR = 5
|
||||
KEEPALIVE = 120
|
||||
|
||||
|
@ -2,6 +2,7 @@ import os
|
||||
import RNS
|
||||
import time
|
||||
import threading
|
||||
import traceback
|
||||
from time import sleep
|
||||
import vendor.umsgpack as umsgpack
|
||||
|
||||
@ -86,6 +87,7 @@ class Transport:
|
||||
except Exception as e:
|
||||
RNS.log("An exception occurred while running Transport jobs.", RNS.LOG_ERROR)
|
||||
RNS.log("The contained exception was: "+str(e), RNS.LOG_ERROR)
|
||||
traceback.print_exc()
|
||||
|
||||
Transport.jobs_running = False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user