(socket_path: &Path)
| 895 | /// the same grace used for per-request connects before falling back. |
| 896 | #[cfg(unix)] |
| 897 | pub async fn should_proxy_serve_to_daemon(socket_path: &Path) -> bool { |
| 898 | let installed_socket = installed_service_socket_path().ok().flatten(); |
| 899 | should_proxy_serve_to_daemon_with( |
| 900 | socket_path, |
| 901 | installed_socket.as_deref(), |
| 902 | DAEMON_RESTART_GRACE, |
| 903 | DAEMON_RESTART_POLL_INTERVAL, |
| 904 | ) |
| 905 | .await |
| 906 | } |
| 907 | |
| 908 | #[cfg(unix)] |
| 909 | async fn should_proxy_serve_to_daemon_with( |
no test coverage detected