-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Upload stalling with HTTPS #1480
Comments
If I pause the upload, |
@oliverpool This may be related to default timeouts set in 0.9.5 (they will be disabled in next release)
|
But then it should also fail on http (not only on https), no? Anyway, I will try it tomorrow |
@oliverpool ohh sorry didnt notice that, but it may be worth a try anyway. |
I have the exact same problem. If I set |
@unknwon Is |
@mholt yes,
|
And just realize same for download, hangs on about 16.1MB. |
@unknwon You've only set the read timeout to 0, set all of them to 0 and try again. Is the HTTPS upload any slower than the HTTP upload? |
Sorry about multiple comments so quickly, roll back to 0.9.4 immediately solved the problem.
At first I didn't set any timeouts, and it just hangs on upload about 13.8MB until it timeout. |
That's interesting. Would you be able to spare a few minutes to help debug this since I have nothing to reproduce this with from this issue so far? Just brainstorming here... if you could try before these commits/PRs (like bisect?) and see if any of them are the culprit: |
@mholt sure, but probably half an hour later... |
I can't enable HTTPS for local fake domain for all sorts of reason, it is giving me hard time to debug. And HTTP seems working fine ( Update: only happens for large content transfer with |
@unknwon Even with @oliverpool Would you please be able to try Caddy at those commits/PRs I linked to above and see which one causes it? |
@mholt & @unknwon : I found a preciser cause ! It seems to be the
So a simple workaround is to correctly set the timeouts 😄 But there might still be a bug regarding what happens when a timeout occurs. |
According to https://blog.cloudflare.com/exposing-go-on-the-internet/, there is a bug regarding
I will try to compile caddy with go 1.8 and update my bug report. |
Compiled with go 1.8 (go version go1.8 windows/amd64): The |
@oliverpool Ah, excellent. I forgot about that bug mentioned in the blog post! 😁 Oops. Okay, so for now, disable timeouts completely on Caddy 0.9.5 if you're having this problem. The next version will be built on Go 1.8 so that should resolve the bug (and default timeouts will be disabled anyway). Thanks for figuring it out! 🎉 |
I will just use the one I compiled it with go 1.8 ;-) Thank you for your support! |
I can confirm this issue with 0.9.5. with https, upload fails after some time (502), with http, it just infinitely waits. Downgrading to 0.9.4 helped. Can I help debugging this issue? |
Did you try with Go 1.8 ? |
I'm using abiosoft/caddy docker image. No clue which go is it using, but Dockerfile looks like it's downloading the official binary from caddyserver.com. |
Well then you will have to wait a bit (#1480 (comment) from mholt):
|
Is this something ongoing? I cant upload files above certain size. Also 'limits' directive Parse error: Unknown directive 'limits'. Is there any way how to go around this? |
@krisak which version of Caddy are you using ? If this is happening with version 0.10.3, it might be a good idea to open a new issue. |
Oh damn i am still 0.10.2. I will try to update and see whats going on. Edit: Worked. Funny i thought that 0.10.2 was pretty bleeding edge and that limits directive is something loong in caddy because it is in docs :)) |
Probably similar to #1147
1. What version of Caddy are you running (
caddy -version
)?0.9.5
2. What are you trying to do?
Upload large file (with caddy acting as reverse proxy in front of tus)
3. What is your entire Caddyfile?
4. How did you run Caddy (give the full command and describe the execution environment)?
caddy.exe
on windows 10
5. What did you expect to see?
Upload of 10MB file coimpleting fine over https
6. What did you see instead (give full error messages and/or log)?
When trying on http, the upload works fine.
On https, the upload stalls at about 60%. From the client side, the JS doesn't send (no more
progress
events)I don't know how I could dig deeper to debug this situation: any input is appreciated!
The text was updated successfully, but these errors were encountered: