Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

for the lantorrent workspace control client to end if the directory

holding the destination file is gone.  when a request is terminated
the directory is removed, we can use this as signal to let lantorrent
stop trying.
  • Loading branch information...
commit 24185ea0a1ca775095161a27b91fe09d1d7f406b 1 parent e687ddb
@buzztroll buzztroll authored
Showing with 9 additions and 0 deletions.
  1. +8 −0 control/bin/ltclient.sh
  2. +1 −0  lantorrent/pylantorrent/request.py
View
8 control/bin/ltclient.sh
@@ -11,6 +11,8 @@ localpath=$5
rid=$6
ltcs=$7
+localpath_basedir=`dirname $localpath`
+
retry_count=3
cnt=0
done_req=0
@@ -66,6 +68,12 @@ do
fi
fi
fi
+
+ if [ ! -e $localpath_basedir ]; then
+ echo "the directory for the receiving file does not exist"
+ echo "this likely means that the request was terminated"
+ exit 2
+ fi
done
if [ "X$done" == "XFalse" ]; then
ssh -p $port $userhost "$remoteexe" --reattach "$rid"
View
1  lantorrent/pylantorrent/request.py
@@ -134,6 +134,7 @@ def request(argv, con):
time.sleep(random.random() * 2.0)
# should never get here
+ raise Exception("LANTorrent should not have gotten here")
def main(argv=sys.argv[1:]):
Please sign in to comment.
Something went wrong with that request. Please try again.