(lifecycle service.Lifecycle, allClientsExited chan struct{})
| 124 | } |
| 125 | |
| 126 | func (s *serverImpl) disconnectClients(lifecycle service.Lifecycle, allClientsExited chan struct{}) { |
| 127 | select { |
| 128 | case <-allClientsExited: |
| 129 | return |
| 130 | case <-lifecycle.ShutdownContext().Done(): |
| 131 | } |
| 132 | |
| 133 | s.lock.Lock() |
| 134 | for serverSocket := range s.clientSockets { |
| 135 | _ = serverSocket.Close() |
| 136 | } |
| 137 | s.clientSockets = map[*ssh.ServerConn]bool{} |
| 138 | s.lock.Unlock() |
| 139 | } |
| 140 | |
| 141 | func (s *serverImpl) createPasswordAuthenticator( |
| 142 | connectionMetadata metadata.ConnectionMetadata, |
no test coverage detected