-
Notifications
You must be signed in to change notification settings - Fork 96
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
Socket hang up when uploading to server #90
Comments
Does anyone know why this would be happening? |
Nucleus itself doesn't have a timeout on the upload. My guess is whatever you are using as an entry point (nginx, apache, etc.) has a connection timeout set to 2 minutes |
I actually am using the Maybe docker is the problem variable here but that would be surprising. |
Looks like node has a default connection timeout of 2 minutes https://nodejs.org/dist/latest-v12.x/docs/api/http.html#http_server_settimeout_msecs_callback |
Oh! Interesting. I'm assuming this has to be done on the server side. I can try it out and make a pull request to either disable the timeout or make it configurable. |
This was a very helpful find. I managed to configure the server to have a default 30 minute timeout. This worked perfectly. I tested in a similar fashion and was able to release to my s3 bucket without getting a socket hang up. Would love any feedback :) |
I've gone down a bit of a rabbit hole trying to figure out why I kept getting a socket timeout error from the electron-forge publisher.
I eventually realized that when I was doing the upload at exactly 2 minutes the upload was failing with this message:
I was simulating a prod server in a local docker compose file but connecting to an actual S3 bucket to test out aspects of the prod infrastructure.
The text was updated successfully, but these errors were encountered: