TSVCONNREENABLE(3ts)

πŸ“¦
version 9.2.5 Β· 4 versions
, in ubuntu noble, ubuntu questing

✨ NAME ✨

TSVConnReenable β€” the TSVConnReenable API function, bestie πŸ’…


πŸ’– TSVCONNREENABLE πŸ’–

🌸 Synopsis 🌸

#include <ts/ts.h>

void TSVConnReenable(TSVConn svc)

πŸ¦‹ Description πŸ¦‹

okay so TSVConnReenable is the glow-up button for the SSL connection svc. Like, you re-enable it. That's the whole vibe. πŸ”₯

Here's the tea though: if a plugin hook gets called, ATS is not going to resume processing on that connection until you actually invoke this for that connection. It's literally sitting there waiting for you. no cap.

If the server is running OpenSSL 1.0.2, a plugin writer can pause SSL handshake processing at the certificate callback by just… not reenabling the connection. Iconic. But if you're running an OpenSSL version older than 1.0.2? πŸ’€ The handshake processing in SSL_accept will not be stopped, even if the SNI callback doesn't re-enable the connection. It's giving "I do what I want."

Additional processing could re-enable the virtual connection, which causes SSL_accept to be called again to complete the handshake exchange. And in the case of a blind tunnel conversion, the SSL handshake will never be completed by Traffic Server. periodt. 😭

Good news though, the main character moment: this call does appropriate locking and scheduling, so it is safe to call from another thread. 🫢


πŸ¦‹ TSVCONNREENABLEEX πŸ¦‹

🌸 Synopsis 🌸

#include <ts/ts.h>

void TSVConnReenableEx(TSVConn svc, TSEvent event)

πŸ¦‹ Description πŸ¦‹

TSVConnReenableEx is the extended version of TSVConnEnable that lets the plugin return a status back to the core logic. she's got ✨range✨

If all goes well, this is TS_EVENT_CONTINUE. But if the plugin wants to stop the processing, it can set the event to TS_EVENT_ERROR. choose your own adventure, honestly.

For example: in the case of the TS_SSL_VERIFY_SERVER_HOOK, the plugin make decide the origin certificate is bad. By calling TSVonnReenable with TS_EVENT_ERROR, the certificate check will error and the TLS handshake will fail. bye felicia πŸ‘‹πŸ’€

ngl, that's the whole page. short king of a manpage. slay.

2026, dev@trafficserver.apache.org


okay bestie that's a wrap! πŸŽ€ this was Apache Traffic Server manpage TSVCONNREENABLE(3ts), from version 9.2, dated Feb 12, 2026. go forth and re-enable responsibly πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from