mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
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:
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user