On Wed, Jul 17, 2024 at 2:35 PM Joanne Koong <joannelkoong@xxxxxxxxx> wrote: > > There are situations where fuse servers can become unresponsive or take > too long to reply to a request. Currently there is no upper bound on > how long a request may take, which may be frustrating to users who get > stuck waiting for a request to complete. > > This commit adds a daemon timeout option (in seconds) for fuse requests. > If the timeout elapses before the request is replied to, the request will > fail with -ETIME. For reference, this is the userspace program I've been using to test the timeout paths: https://github.com/libfuse/libfuse/pull/994/commits/bb523c2db3417adfd939baef2345a485ad3f8c52 To locally simulate some of the racier conditions (eg request handler handles the request and timeout handler re-adds the request to the waitqueue), I manually added in sleeps in the kernel handlers to hit those paths > -- > 2.43.0 >