chore: finalize lab7 security verification
CI / verify (pull_request) Failing after 3m27s

This commit is contained in:
2026-11-06 21:39:31 +03:00
parent 5ac64f51fa
commit 97a52eeee6
41 changed files with 759 additions and 150 deletions
+3 -3
View File
@@ -40,7 +40,7 @@ func Run(ctx context.Context, config Config) error {
if err != nil {
return fmt.Errorf("listen: %w", err)
}
defer listener.Close()
defer func() { _ = listener.Close() }()
go func() {
<-ctx.Done()
_ = listener.Close()
@@ -66,7 +66,7 @@ func Run(ctx context.Context, config Config) error {
func serve(ctx context.Context, connection net.Conn, config Config, tlsConfiguration *tls.Config) {
client := tls.Server(connection, tlsConfiguration)
defer client.Close()
defer func() { _ = client.Close() }()
handshakeCtx, cancel := context.WithTimeout(ctx, config.DialTimeout)
defer cancel()
if err := client.HandshakeContext(handshakeCtx); err != nil {
@@ -76,7 +76,7 @@ func serve(ctx context.Context, connection net.Conn, config Config, tlsConfigura
if err != nil {
return
}
defer target.Close()
defer func() { _ = target.Close() }()
result := make(chan struct{}, 2)
copyConnection := func(destination, source net.Conn) {