worker: mark new UDP fd received as UDP data reception time

That prevents errors such as switching to TCP when no UDP packets
are received immediatelly after connection establishment.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
Nikos Mavrogiannopoulos
2018-02-11 12:01:31 +01:00
parent e61029445c
commit e2a0be65e4

View File

@@ -154,6 +154,8 @@ int handle_commands_from_main(struct worker_st *ws)
set_mtu_disc(fd, ws->proto, 0);
oclog(ws, LOG_DEBUG, "received new UDP fd and connected to peer");
ws->udp_recv_time = time(0);
return 0;
}