Skip to content

Commit 9c3e874

Browse files
committed
fix shutdown doc
1 parent fd2c0d1 commit 9c3e874

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

agent/agentssh/agentssh.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,8 @@ func (s *Server) Close() error {
11091109

11101110
// Shutdown stops accepting new connections. The current implementation
11111111
// calls Close() for simplicity instead of waiting for existing
1112-
// connections to close.
1112+
// connections to close. If the context times out, Shutdown will return
1113+
// but Close() may not have completed.
11131114
func (s *Server) Shutdown(ctx context.Context) error {
11141115
ch := make(chan error, 1)
11151116
go func() {

0 commit comments

Comments
 (0)