Skip to content

Add TLS-aware I/O paths#1

Open
quonic wants to merge 2 commits into
Macho0x:mainfrom
quonic:main
Open

Add TLS-aware I/O paths#1
quonic wants to merge 2 commits into
Macho0x:mainfrom
quonic:main

Conversation

@quonic
Copy link
Copy Markdown

@quonic quonic commented May 3, 2026

I was using this to integrate Twitch's EventSub in to my application and I fixed a few problems along the way. I figured contributing back might be of some help to others.

Unify platform error handling

  • Replace raw errno usage with shared error helper procs
  • Normalize invalid, refused, reset, would-block, and support errors

Add TLS-aware client transport

  • Send HTTP requests through TLS sockets when enabled
  • Add SNI-aware OpenSSL socket setup and TLS config ownership fixes
  • Improve request serialization and response parsing for multi-value headers

Support TLS connections

  • Use TLS reads and writes during WebSocket handshake and frame I/O
  • Store TLS socket on Conn and close it correctly
  • Improve ping, pong, close, and read-state handling

quonic added 2 commits May 3, 2026 17:51
- switch HTTP and WebSocket code to os.Error helpers
- route client and frame reads/writes through TLS sockets
- update OpenSSL bindings for SNI and platform libs
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