GetListingAsync takes > 30 seconds and can't be canceled #743
Labels
aws-deployment
closing soon - ancient issue
Unless someone protests, this will be closed end of the next quarter
no response
FTP OS: Unix (.NET Core 3.1)
FTP Server: i don't know how to determine this, it's not mine
Computer OS: Whatever AWS Lambda is running
FluentFTP Version: 34.0.0
Occasionally (about 5 times out of 100000)
GetListingAsync
will block for a long time. I'm not sure entirely how long, because it takes > 30 seconds, which is currently what the hosting AWS Lambda timeout is set to, so our process is just killed unceremoniously. (I'm going to increase this for testing but I don't have the data yet.)All of the client timeouts are set to 15 seconds, so they're not being respected.
What's worse is that when this happens, the operation can't be canceled, either - whatever is blocking doesn't appear to be checking the passed-in
CancellationToken
. Based on the logs, it looks like a blocking disposal, but I'm not sure.Logs :
(the first line shows the timed-out process; the second is an application-level log that the token has had cancellation signaled)
The text was updated successfully, but these errors were encountered: