mirror of
https://github.com/markqvist/LXMF
synced 2026-11-27 13:52:19 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2812a07165 | ||
|
|
10be1383e5 | ||
|
|
4d356bcda8 |
No files matched your search
+2
-2
@@ -19,7 +19,7 @@ class LXMRouter:
|
|||||||
MAX_DELIVERY_ATTEMPTS = 5
|
MAX_DELIVERY_ATTEMPTS = 5
|
||||||
PROCESSING_INTERVAL = 4
|
PROCESSING_INTERVAL = 4
|
||||||
DELIVERY_RETRY_WAIT = 7
|
DELIVERY_RETRY_WAIT = 7
|
||||||
PATH_REQUEST_WAIT = 5
|
PATH_REQUEST_WAIT = 7
|
||||||
LINK_MAX_INACTIVITY = 10*60
|
LINK_MAX_INACTIVITY = 10*60
|
||||||
|
|
||||||
MESSAGE_EXPIRY = 30*24*60*60
|
MESSAGE_EXPIRY = 30*24*60*60
|
||||||
@@ -1221,7 +1221,7 @@ class LXMRouter:
|
|||||||
else:
|
else:
|
||||||
RNS.log("Starting outbound processing for "+str(lxmessage)+" to "+RNS.prettyhexrep(lxmessage.get_destination().hash), RNS.LOG_DEBUG)
|
RNS.log("Starting outbound processing for "+str(lxmessage)+" to "+RNS.prettyhexrep(lxmessage.get_destination().hash), RNS.LOG_DEBUG)
|
||||||
# Outbound handling for opportunistic messages
|
# Outbound handling for opportunistic messages
|
||||||
if lxmessage.method == LXMessage.OPPORTUNISTIC:
|
if lxmessage.method == LXMessage.OPPORTUNISTIC:
|
||||||
if lxmessage.delivery_attempts <= LXMRouter.MAX_DELIVERY_ATTEMPTS:
|
if lxmessage.delivery_attempts <= LXMRouter.MAX_DELIVERY_ATTEMPTS:
|
||||||
if not hasattr(lxmessage, "next_delivery_attempt") or time.time() > lxmessage.next_delivery_attempt:
|
if not hasattr(lxmessage, "next_delivery_attempt") or time.time() > lxmessage.next_delivery_attempt:
|
||||||
lxmessage.delivery_attempts += 1
|
lxmessage.delivery_attempts += 1
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
__version__ = "0.3.7"
|
__version__ = "0.3.8"
|
||||||
Reference in new issue
Block a user