-
-
Notifications
You must be signed in to change notification settings - Fork 155
Description
What are you building with SQLPage ?
Personal tools too share copy-pasted text, long urls (to long to type if that's the only option, ie over the phone), files.
What is your problem ? A description of the problem, not the solution you are proposing.
Uploaded files can be quite large in my use case. I want to support ~100MB and even ~1GB. Typically, files will be small (~2MB photos), but if there is the one off large file, I want to support that.
Anyhow, a 100MB file is large enogh that when I use sqlpage.fetch to get the file hash from an external service, the time it takes the service to hash the file is longer than the default 5 seconds timeout.
What are you currently doing ? Since your solution is not implemented in SQLPage currently, what are you doing instead ?
I have no work around.
Files larger than ~65MB may not get processed correcly.
Describe the solution you'd like
I'd like to expose the request timeout in sqlpage.fetch:
https://docs.rs/awc/latest/awc/struct.ClientBuilder.html#method.timeout
I think the default of 5 seconds is good enough, but abilty to override once off for known slow responses would be good.
A configurable default would be good too for cases where bandwidth is very limited.
A clear and concise description of what you want to happen.
Describe alternatives you've considered
I considered using sqlpage.exec to calculate the hash, but would rather not use that method due to security concerns.