Open chengyechun opened 6 months ago
If the system time is changed to the past time, will the value of select_timeout in the select change for a long time? Similar to the following stack
(gdb) bt
(gdb) f 1
78 select(nfds,&in_ready,&out_ready,0,select_timeout); (gdb) p *select_timeout $1 = {tv_sec = 2349, tv_usec = 561673}
When you run the lftp command to connect to an unknown host, the connection times out and the connection is disconnected. However, after the lftp command is started, the local system time is changed to the past time. As a result, there is a high probability that the lftp command is suspended. Indicates whether to consider the Clock_MONOTONIC clock when setting the timeout mechanism for lftp.