You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
🐞 Service stop semantics work differently between SDK and Modules #6430
upon calling dagger call nginx, dagger will hang for a long time in the defer tunnel.Stop(ctx) call. If instead of just stopping the tunnel, we stop both the service and the tunnel in the defer function, this works as intended.
This doesn't happen while using the SDK directly without modules, the defer statement described in the example returns immediately.
Dagger version
v0.9.6
Steps to reproduce
Run the snippet above withing a context of a module.
We need to make sure to properly shut down our outgoing connections, or we'll just keep reading and reading forever (see #6518). Not 100% sure why this only appears in modules, but for some reason... it doesn't.
Activity
jedevc commentedon Jan 29, 2024
This looks unrelated to #6354.
We seem to get stuck in
dagger/core/service.go
Lines 585 to 587 in 8483a5e
We never shut down the connection:
dagger/engine/buildkit/client.go
Lines 641 to 644 in 8483a5e
We need to make sure to properly shut down our outgoing connections, or we'll just keep reading and reading forever (see #6518). Not 100% sure why this only appears in modules, but for some reason... it doesn't.