Skip to content

feat: expose negotiated TLS ALPN protocol - #30

Merged
localzet merged 1 commit into
mainfrom
feat/server-tls-alpn
Nov 21, 2026
Merged

localzet merged 1 commit into
mainfrom
feat/server-tls-alpn

Conversation

@localzet

Copy link
Copy Markdown
Owner

Изменения

  • Добавлена настройка LOCALZET_SSL_ALPN_PROTOCOLS для списка ALPN в TLS context.
  • TcpConnection::getTlsNegotiatedProtocol() возвращает выбранный протокол после handshake или null, если ALPN не согласован.
  • mTLS integration-сценарий проверяет выбор http/1.1 и соединения без ALPN.

Это добавляет обнаружение согласованного протокола, но не HTTP/2: встроенный HTTP codec по-прежнему обрабатывает HTTP/1.x.

Проверки

  • composer run lint
  • composer run test:mtls
  • composer run test:all
  • composer run analyze
  • Локально PHP 8.5.4; CI проверит поддерживаемые PHP 8.1–8.5.

@deepsource-io

deepsource-io Bot commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

DeepSource Code Review

We reviewed changes in ba0868b...08b522d on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Code Review Summary

Analyzer Status Updated (UTC) Details
PHP Nov 21, 2026 3:07p.m. Review ↗

Important

AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.

@localzet
localzet merged commit b5f75fe into main Nov 21, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant