-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FTP detector ignores context timeout #3714
Comments
The FTP detector does not use context for handling timeouts. Instead, it relies on this logic for setting timeouts. The issue comes because To address this, I tried a solution where the timeout is retrieved from the context instead of relying on the current logic. func getContextTimeout(ctx context.Context) time.Duration {
deadline, ok := ctx.Deadline()
if !ok {
return defaultVerificationTimeout
}
return time.Until(deadline)
} With this change, the |
If this solution looks fine, I can create a pull request. |
While that is an issue, it's a bit more complicated. Even if the detector uses Running a local test with some additional logs we can see that the FTP detector waits 240s before returning an error:
|
That's weird because we are passing timeout to Also, can you share the command you are using to run? |
The text was updated successfully, but these errors were encountered: