Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/hostnet/mux.ml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ module Make(Netif: V1_LWT.NETWORK) = struct
Vfs.File.ro_of_string (String.concat "\n" xs)

let remove t rule =
Log.debug (fun f -> f "removing switch port for %s" (Ipaddr.V4.to_string rule));
Log.warn (fun f -> f "removing switch port for %s" (Ipaddr.V4.to_string rule));
t.rules <- RuleMap.remove rule t.rules

let callback t buf =
Expand Down
4 changes: 2 additions & 2 deletions src/hostnet/slirp.ml
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ module Make(Config: Active_config.S)(Vmnet: Sig.VMNET)(Dns_policy: Sig.DNS_POLIC
Lwt.return (Ok ())
end

(* If no traffic is received for 5 minutes, delete the endpoint and
(* If no traffic is received for 50 minutes, delete the endpoint and
the switch port. *)
let rec delete_unused_endpoints t () =
Host.Time.sleep 30.
Expand All @@ -652,7 +652,7 @@ module Make(Config: Active_config.S)(Vmnet: Sig.VMNET)(Dns_policy: Sig.DNS_POLIC
let now = Unix.gettimeofday () in
let old_ips = IPMap.fold (fun ip endpoint acc ->
let age = now -. endpoint.Endpoint.last_active_time in
if age > 300.0 then ip :: acc else acc
if age > 3000.0 then ip :: acc else acc
) t.endpoints [] in
List.iter (fun ip ->
Switch.remove t.switch ip;
Expand Down