amphp / socket

Non-blocking socket and TLS functionality for PHP based on Amp.

Home Page:https://amphp.org/socket

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use separate interfaces for TLS management and TLS state inspection

bwoebi opened this issue · comments

shutdownTLS and setupTLS indicate that a sockets TLS can be setup or shutdown.

However, an encrypted socket may want to expose that information without offering to change the TLS state - use cases are when wrapping another socket or also concretely, QUIC, which is forcibly using TLS, setup and shutdown not possible.

Introducing even more interfaces doesn't really make sense here, so we did the opposite in #100.