-
Notifications
You must be signed in to change notification settings - Fork 248
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
context deadline exceeded & bad file descriptor for network calls in worker #100
Comments
If I use an IP, I see a different error:
|
OK, figured it out. Looks like it's the closeFiles in
If I comment the defer out, it works.
UPDATE: It worked once and fails any subsequent runs... :( |
AHA! It's a premature close/race condition issue! If I add the call in closeFiles, which causes it to be delayed slowly, the childs can spawn properly with the FDs.
Adding a sleep for 1 second before closing is a decent solution for now. |
The best thing I can find is to wait 2 seconds for the child and worker to fully init before exiting. It's a bit of a change for existing users, but it seems to work and unblock me. |
Using
signal-handler.go
, if I put this http call right under the daemon started:I see:
If I put the same into the worker, same problem:
The text was updated successfully, but these errors were encountered: