From 19570483e7d097a09468898e0cfc4eb406cdf1f5 Mon Sep 17 00:00:00 2001 From: fanasina Date: Fri, 10 Oct 2025 08:46:04 +0200 Subject: [PATCH] y_socket: debug send_file update nameid and timeid when re_sending paquets --- y_socket_t/src/y_socket_t/y_file_handler.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/y_socket_t/src/y_socket_t/y_file_handler.c b/y_socket_t/src/y_socket_t/y_file_handler.c index 2bcd86a..fb958d8 100644 --- a/y_socket_t/src/y_socket_t/y_file_handler.c +++ b/y_socket_t/src/y_socket_t/y_file_handler.c @@ -578,11 +578,12 @@ for(int tour_i=0;(tour_i<4) && (check_if_in_ok_header_l_(argS->m_ok_head_l_t, na close(fd_file); printf("debug: fd=%d closed: filename=%s, for %s\n",fd_file,filename, tempAddr); - size_t delay = 4000000; + size_t delay = 8000000; printf("debug: wait %ld before checking, in tour:%d\n",delay, tour_i); usleep(delay); free(timeid); timeid = time_id(); + sprintf(nameid, "%s_%s_%s_%s",name_f, tempAddr, tempAddr, timeid); }