Skip to content
Snippets Groups Projects
Commit c06a9aaf authored by Enris Nogare Von Tein's avatar Enris Nogare Von Tein
Browse files

Upload now prints any response got for debugging. Will be removed ion final...

Upload now prints any response got for debugging. Will be removed ion final version. Decreased timeout on failed uploads from 50 to 5

Signed-off-by: default avatarEnris Nogare von Tein <ent13@inf.ufpr.br>
parent b812c507
No related branches found
No related tags found
1 merge request!11Issue 3063 stg4clnr
......@@ -54,5 +54,5 @@ else
fi
pinfo "Cloning via rsync"
cat "$INCLUDE" "$EXCLUDE" | rsync -a --delete --delete-excluded --numeric-ids -v --exclude-from=- "${RSYNC_OPTS}" "${RSYNC_SOURCE}" "${TARGET_DIR}" || perror "rsync from '${RSYNC_SOURCE}' to '${TARGET_DIR}' failed."
cat "$INCLUDE" "$EXCLUDE" | rsync -a --delete --exclude="${TARGET_DIR}" --delete-excluded --numeric-ids -v --exclude-from=- "${RSYNC_OPTS}" "${RSYNC_SOURCE}" "${TARGET_DIR}" || perror "rsync from '${RSYNC_SOURCE}' to '${TARGET_DIR}' failed."
1731216 teste.r1.tar.gz
1726520 trying.r1.tar.gz
{"uploadid":"XoqQjZRveULpcdtxUzzB431MnUxQZ1UwheD","status":"ok","code":"003","msg":"New upload succesful"}
\ No newline at end of file
......@@ -22,6 +22,7 @@ int checa_sucesso_upload(){
char *user_data_str;
user_data_str = malloc(2550*sizeof(char));
user_data = fopen(".upload.out", "r");
system("cat .upload.out");
fgets(user_data_str,2550*sizeof(char), user_data );
puts("User data: ");
puts(user_data_str);
......@@ -323,7 +324,7 @@ int main(int argc, char *argv[]){
puts("Sistema irá tentar reenviar a ultima parte.");
--i;
timeout_count++;
if(timeout_count == 50){
if(timeout_count == 5){
puts("Conexão com o banco perdida. Tente novamente.");
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment