diff --git a/ServerEnclave/host/process_ae_requests.cpp b/ServerEnclave/host/process_ae_requests.cpp index 54461a2d6..0d2ef0d2f 100755 --- a/ServerEnclave/host/process_ae_requests.cpp +++ b/ServerEnclave/host/process_ae_requests.cpp @@ -166,6 +166,7 @@ void process_ae_requests() // } // } ser->fetch_signed_messages(send_index, message); + boost::this_thread::sleep(boost::posix_time::milliseconds(1)); } } ae_infos temp_info; @@ -181,7 +182,7 @@ void process_ae_requests() } else { - // boost::this_thread::sleep(boost::posix_time::milliseconds(5)); + boost::this_thread::sleep(boost::posix_time::milliseconds(5)); } } catch (boost::thread_interrupted &) diff --git a/aliyun-bj.sh b/aliyun-bj.sh index 8daf85d66..42a51aad9 100755 --- a/aliyun-bj.sh +++ b/aliyun-bj.sh @@ -222,7 +222,9 @@ build_narrator(){ echo "Build Narrator ServerEnclave" $ssh_config root@${cloud_ip} " cd ~/Narrator/ServerEnclave/; + git reset --hard; git pull; + rm -rf build; mkdir build; cd build; cmake ..; diff --git a/aliyun-hz.sh b/aliyun-hz.sh index 55bb4e503..6d6888cf0 100755 --- a/aliyun-hz.sh +++ b/aliyun-hz.sh @@ -211,7 +211,9 @@ build_narrator(){ echo "Build Narrator ServerEnclave" $ssh_config root@${cloud_ip} " cd ~/Narrator/ServerEnclave/; + git reset --hard; git pull; + rm -rf build; mkdir build; cd build; cmake ..; @@ -220,6 +222,7 @@ build_narrator(){ echo "Build Narrator ServerEnclave Successful! Now build the AppEnclave" $ssh_config root@${cloud_ip} " cd ~/Narrator/AppEnclave/; + rm -rf build; mkdir build; cd build; cmake ..;