uds: disable the accidentally enabled announce timer.
Commit e425da2f
inadvertently enabled the announce timer on the UDS port,
causing it to continually reopen the socket when in slave mode. This patch
fixes the issue by passing zero in the 'span' field of the new function,
set_tmo_random, which disables the timer again.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Reported-by: Rohrer Hansjoerg <hj.rohrer@mobatime.com>
master
parent
21889c5e7e
commit
f36af8e0c3
1
ds.h
1
ds.h
|
@ -130,6 +130,7 @@ struct port_defaults {
|
|||
UInteger8 announceReceiptTimeout;
|
||||
UInteger8 syncReceiptTimeout;
|
||||
UInteger8 transportSpecific;
|
||||
int announce_span;
|
||||
int path_trace_enabled;
|
||||
int follow_up_info;
|
||||
int freq_est_interval; /*log seconds*/
|
||||
|
|
3
port.c
3
port.c
|
@ -843,7 +843,8 @@ static void port_nrate_initialize(struct port *p)
|
|||
static int port_set_announce_tmo(struct port *p)
|
||||
{
|
||||
return set_tmo_random(p->fda.fd[FD_ANNOUNCE_TIMER],
|
||||
p->announceReceiptTimeout, 1, p->logAnnounceInterval);
|
||||
p->announceReceiptTimeout,
|
||||
p->pod.announce_span, p->logAnnounceInterval);
|
||||
}
|
||||
|
||||
static int port_set_delay_tmo(struct port *p)
|
||||
|
|
Loading…
Reference in New Issue